Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01528660
Message ID:
01528665
Views:
75
>>What error do you get?
>>
>>>
>>>I'm trying to connect to a SQL database using the below connection string but with no joy. The server name is correct as is the username and password, any ideas?
>>>
>>>constring = "Driver=SQL Server;Server=SERVER-ACC\SQLEXPRESS;Database=accTrax;uSER iD=user1;Password=password1;Trusted_connection=yes"
>>>
>>>~M
>
>two error come up on the screen, error 0 and error 4060. SQL server is running, after the error comes up i get a login screen and can use the same credentials to login. the authentication is sql server and not windows
>~M


Get rid of the Trusted Connection = yes part. You are using SQL authentication.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform