General information
Category:
Windows API functions
Thank you very much ! It helps
>If you are trying to create ODBC connection for SQL Server, try using this >API function:
>DECLARE Integer SQLConfigDataSource IN odbccp32.dll;
>Integer,;
>Short,;
>lc_driver String @,;
>lc_dsn String @
>
>lc_driver = 'SQL Server' + Chr(0)
>lc_dsn = 'dsn=Connection_Name' + Chr(0)
>
>fResult = SQLConfigDataSource(0, 1, @lc_driver, @lc_dsn)
>
>The first two parameters I don't remember the real meaning, but I always >use like that and never got a problem...
>
>If you are creating another type of ODBC connection, change the lc_driver >paramater, maybe it would work...
>I hope I've helped...
Silvio
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only