问题
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.
来源:https://stackoverflow.com/questions/47717693/how-can-a-tclientdataset-determine-what-type-of-database-it-is-remotely-connec