M
MuZZY
Hi,
I wonder if someone can help me with the problem:
At work we have a network domain with a MS SQL Server box.
I am trying to connect to the server using ADO.NET in my asp.net page:
//----------------------------------------
SqlConnection con =
new SqlConnection( "Server=MYSERVER;Database=MYDATABASE;Integrated
Security=SSPI");
try
{
con.Open();
}
catch (SqlException ee) {return false;}
//-----------------------------------------
I have administrative rights on the domain, but when i try to connect i
get the exception. When i look in the ee.Message it says something like
"Access denied for user=null..."
So why i can't connect using trusted connection?
Do i need to set anything else as well?
By the way, IIS server i am using is on my machine and integrated
security is turned on there.
Also i don't have probelms connecting to the server thru Qyery Analyser
or Enterprise Manager using Windows Logon.
Any ideas would be highly appreciated!
Thank you in advance,
Andrey
I wonder if someone can help me with the problem:
At work we have a network domain with a MS SQL Server box.
I am trying to connect to the server using ADO.NET in my asp.net page:
//----------------------------------------
SqlConnection con =
new SqlConnection( "Server=MYSERVER;Database=MYDATABASE;Integrated
Security=SSPI");
try
{
con.Open();
}
catch (SqlException ee) {return false;}
//-----------------------------------------
I have administrative rights on the domain, but when i try to connect i
get the exception. When i look in the ee.Message it says something like
"Access denied for user=null..."
So why i can't connect using trusted connection?
Do i need to set anything else as well?
By the way, IIS server i am using is on my machine and integrated
security is turned on there.
Also i don't have probelms connecting to the server thru Qyery Analyser
or Enterprise Manager using Windows Logon.
Any ideas would be highly appreciated!
Thank you in advance,
Andrey