Search code examples
delphiodbcdelphi-5

odbc datasource connection at runtime through delphi


can we create ODBC datasource connection at runtime? If yes then can you plz help regarding how to do it. Currently I am created the ODBC datasource connection manually through Control Panel--> Administrative Tools --> Datasources. But i want to create that at runtime when user run application.

thanks for the help.


Solution

  • You can use SQLConfigDataSource (Delphi example).