trusted SQL Server connection

Posted by dan_vitch on Stack Overflow See other posts from Stack Overflow or by dan_vitch
Published on 2010-05-18T18:17:24Z Indexed on 2010/05/18 18:20 UTC
Read the original article Hit count: 248

Filed under:
|
|
|

When I attempt to make a connection from my console app to my sqlExpress. I get the following error:

The user is not associated with a trusted SQL Server connection.

I have:

Switched users Switched passwords Switched Servers Switched Databases

I always get the same error. I am using VS 2010 and Sql Server 2005

Here is my current connection string SqlDatabase sqlDatabase = new SqlDatabase(@"Server=localmachineName\SQLEXPRESS;database=database1;user id=username password=mypassword;");

© Stack Overflow or respective owner

Related posts about connection

Related posts about string