Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DSN and ODBC Less Connection??????
Message
From
02/10/2002 13:51:18
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706695
Message ID:
00706979
Views:
17
Try adding the database name to your connection string (database = mydata). If I leave it out in my string it opens a box asking for a table name (not DSN?).

John

>I am trying to connect to my SQL server with FoxPro. I know I can create a ODBC connecton and have Fox connect using =SQLCONNECT("odbc connection"), but how do I connect with out create a odbc connection or dsn connection. I would like to do something like this:
>
>lcDSNLess="driver = SQL Server;server=server;uid=sa;pwd="
>lnConnHandle=sqlstringconnect(lcDSNLess)
>
>(Notes: I changed the above not to match my server name and password.)
>
>when I do this it pops up a box for me to select a dsn file. I do not want to create any files on the workstations. I just want to copy the program onto the harddrvie to the workstations and run it.
>
>What am I doing wrong??????
>
>
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform