B
Barry
Hi
When trying to connect to SQL Server using the code below i get this message
at myConnection.Open() line
Login failed for user 'JACKSON-QS7MHO6H\ASPNET'
from where does it add \ASPNET
how do i log on
string mySelectQuery = "SELECT * FROM authors";
string myConnectString = "Persist Security Info=False;Integrated
Security=SSPI;database=pubs;server=JACKSON-QS7MHO6H;";
SqlCommand myCommand = new SqlCommand(mySelectQuery);
myCommand.Connection = new SqlConnection(myConnectString);
SqlConnection myConnection = new SqlConnection(myConnectString);
myCommand.CommandTimeout = 15;
myCommand.CommandType = CommandType.Text;
myConnection.Open();
Barry
When trying to connect to SQL Server using the code below i get this message
at myConnection.Open() line
Login failed for user 'JACKSON-QS7MHO6H\ASPNET'
from where does it add \ASPNET
how do i log on
string mySelectQuery = "SELECT * FROM authors";
string myConnectString = "Persist Security Info=False;Integrated
Security=SSPI;database=pubs;server=JACKSON-QS7MHO6H;";
SqlCommand myCommand = new SqlCommand(mySelectQuery);
myCommand.Connection = new SqlConnection(myConnectString);
SqlConnection myConnection = new SqlConnection(myConnectString);
myCommand.CommandTimeout = 15;
myCommand.CommandType = CommandType.Text;
myConnection.Open();
Barry