>>>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.
I tried that and also below but still get the same error. I can login fine using sql manager
Integrated Security=False
Go raibh maith agat
~M