Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC connectivity Question??
Message
From
17/12/1998 11:15:06
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00168174
Message ID:
00168526
Views:
36
Thank you sir,, I really appreciate your advice
I'll put it to work

mark


>Mark,
> You don't need to create the DSN on the client machine, just call the driver with all the configuration needed. You will still have to distribute ODBC with your setup, but you won't have to worry about cumbersome DSN setup
>
>Use this string instead of your DSN name:
>
>cConnString = "DRIVER={SQL Server};SERVER=MY_SERVER;UID=sa;PWD='';DATABASE=MY_DATABASE"
>
>It works the same and does not require a DSN name, you can also substitute DRIVER with any registered driver (oracle etc), you can find a list of all the drivers in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\OBCDINST.INI.
>Substitute the {SQL Server} with any of those for access to that type of server!
>
>BTW, I'm not going to type that cumbersome registry editing warning ;)
>
>With a little playing around you'll get the hang of it and won't have to worry about setting up DSN or distributing your app.
>
>HTH,
>Ed
Previous
Reply
Map
View

Click here to load this message in the networking platform