2

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.

Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
  • XY Problem? Why would you need this? You're supposed to connect to middle tier without concern for how / what persistence layer it connects to. – Disillusioned Dec 10 '17 at 13:11
  • @CraigYoung You are correct. [This is the X from the Y](https://stackoverflow.com/questions/47673049/parameter-asstring-failing-under-oracle-mssql-parameter-value-2-byte-chars-und) – Jan Doggen Dec 10 '17 at 21:17
  • Any solution how to pass database type from client to server? – Illya Pavlov Apr 04 '18 at 13:49

0 Answers0