Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a File DSN form connecting to a SQL7 Database
Message
From
30/03/2001 14:43:00
 
 
To
29/03/2001 13:14:36
Sam Trenchard
System Support Services
London, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00489739
Message ID:
00490409
Views:
8
Yes, Sam, you right you may use a File DSN interactively, but, unfortunately, there is no way to pass the name as a parameter... :-(
Why don't you want to use SQLStringConnect(...) function? It allows you to connect to the server without creating any DSN, just prepare correct connection string and pass it as a parameter to that function. Sergey has described how you may use SQLStringConnect(...) function.

With best regards,
Alex

>Many thanks for you reply.
>I found that I could use a File DSN interactively by useing and empty string as the parameter as follows :-
>onvar=SQLCONNECT('') -
>then entering the password and the connection works - I just wanted to know if it were possible to pass the name of the FileDSN as a parameter rather than selecting it interactively.
>Regards, Sam Trenchard
Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform