D
David W. Simmonds
I have an asp.net form that works fine with an Access database. Now I want
to use Sql Server 2000. It is installed on the same Windows 2003 machine as
the aspx code runs. I cannot seem to have a SqlConnection successfully
connect. I use the following:
string str = "Persist Security Info=False;Integrated
Security=SSPI;database="+strDatabase+";server="+strServer+";Connect
Timeout=30";
m_SqlConnection = new SqlConnection(str);
m_SqlConnection.Open();
I get Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
I have also tried to leave out the Persist Security Info and Integrated
Security, and replace it with uid=sa;pwd=<my sa password here> but I get the
error:
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server
connection.
The same thing occurs for any user that I add to the Enterprise Manager. At
this point I am not sure what I need to do to configure Sql Server. I know
that there are many knowledgable Sql Server users out there. Can anyone
answer my question?
to use Sql Server 2000. It is installed on the same Windows 2003 machine as
the aspx code runs. I cannot seem to have a SqlConnection successfully
connect. I use the following:
string str = "Persist Security Info=False;Integrated
Security=SSPI;database="+strDatabase+";server="+strServer+";Connect
Timeout=30";
m_SqlConnection = new SqlConnection(str);
m_SqlConnection.Open();
I get Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
I have also tried to leave out the Persist Security Info and Integrated
Security, and replace it with uid=sa;pwd=<my sa password here> but I get the
error:
Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server
connection.
The same thing occurs for any user that I add to the Enterprise Manager. At
this point I am not sure what I need to do to configure Sql Server. I know
that there are many knowledgable Sql Server users out there. Can anyone
answer my question?