Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fail to create ODBC connection under WinNT
Message
From
08/07/2002 05:45:24
 
 
To
05/07/2002 16:32:36
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00675496
Message ID:
00676032
Views:
14
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
Map
View

Click here to load this message in the networking platform