Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i pass parameter in the connection string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00793427
Message ID:
00793453
Views:
18
What about this:
lconn = SQLSTRINGCONNECT("DRIVER=SQL Server;SERVER=SQLSERVER;UID="+tUID+";PWD="+tPWD+";WSID=&tWSID;DATABASE=RAG")

>Can i pass parameter in the connection string of a CursorAdapter
>If i try to do This
>tUID = 'Sebastien'
>tPWD='datadis'
>tWSID='SEBASTIEN'
>
>lconn = SQLSTRINGCONNECT("DRIVER=SQL Server;SERVER=SQLSERVER;UID=&tUID;PWD=&tPWD;;WSID=&tWSID;DATABASE=RAG")
>Lconn = 2 So it Work
>
>But if i put the same string in the Connection string of the CursorAdapter Builder i got this error
>Connectivity error :[Microsoft][OBDC sql driver]Login failed for user '&tUID'
>
>Thank's
Previous
Reply
Map
View

Click here to load this message in the networking platform