Page 1 of 1

Parameterized connection

Posted: Wed 04 May 2011 09:34
by maciejmt
Hi,

I'd like from thread in main application, send parameters of connection (user, pass, database) to DLL. How to do easily (other passing 3 parameters) ?
I don't see property connection string or other...

Posted: Wed 04 May 2011 13:09
by Dimon
TMyConnection doesn't have the ConnectionString property. You should set all connection parameters separately, like this:

Code: Select all

  MyConnection.Server := ServerName;
  MyConnection.Database := DatabaseName;
  MyConnection.Username := Username;
  MyConnection.Password := Password;
In DLL you can pass these properties as parameters of your own procedure.