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

懵懂的女人 提交于 2019-12-11 02:36:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!