How can a TClientDataSet determine what type of database it is (remotely) connected to?

260 views Asked by At

Under FireDAC, I have a TFDConnection -> TFDQuery -> TDataSetProvider in a server app and a TClientDataSet in a client app. They are connected through the RemObjects Remoting SDK. (The TClientDataSet.RemoteServer is set to a TRODataSnapConnection).

The TFDConnection may be connected to different database types.

With the TClientDataSet code in the client, (how) can I determine the database type?

For a simple app containing all these components I could scan the datamodule for a component of type TDataSetProvider with name TClientDataSet.ProviderName at design time (messy but doable), but for this client/server architecture I have no idea how to do this...

The TRODataSnapConnection only has a ServerName property set to TTServer.RDMDataBasis. TTServer is the server application, RDMDataBasis is a TRemoteDataModule in there.

0

There are 0 answers