S
Sherwood
Greetings,
I am attempting to use the following code to establish a connection to a SQL
Server database. However, when I execute the code, I receive the following
error:
"Login failed for user 'guest'. The user is not associated with a trusted
SQL Server connection."
SqlConnection conn = new SqlConnection("Data
Source=HOME-PC\\SQLEXPRESS;Initial Catalog=Contacts;User ID=guest");
conn.Open();
[Note: I am using Windows Authentication].
Any ideas?
Thanks in advance!
I am attempting to use the following code to establish a connection to a SQL
Server database. However, when I execute the code, I receive the following
error:
"Login failed for user 'guest'. The user is not associated with a trusted
SQL Server connection."
SqlConnection conn = new SqlConnection("Data
Source=HOME-PC\\SQLEXPRESS;Initial Catalog=Contacts;User ID=guest");
conn.Open();
[Note: I am using Windows Authentication].
Any ideas?
Thanks in advance!