I'm trying to connect a ASP.NET app to SQL. However when I try to connect I get the following message:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I've tried conecting using the following connection strings:
string strConnSQL = "Server = " + m_strSQLServer +
";" + "Database = " + m_strDataSource + ";" + "Integrated Security=SSPI";
string strConnSQL = "Server = " + m_strSQLServer +
";" + "Database = " + m_strDataSource + ";" + "Trusted_Connection=Yes";
I have also checked the box for Integrated Windows Authentication and unchecked Anonymous Access (IIS).
Could someone help me figure out what I'm missing?
Thank you in advance!
- AT
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
I've tried conecting using the following connection strings:
string strConnSQL = "Server = " + m_strSQLServer +
";" + "Database = " + m_strDataSource + ";" + "Integrated Security=SSPI";
string strConnSQL = "Server = " + m_strSQLServer +
";" + "Database = " + m_strDataSource + ";" + "Trusted_Connection=Yes";
I have also checked the box for Integrated Windows Authentication and unchecked Anonymous Access (IIS).
Could someone help me figure out what I'm missing?
Thank you in advance!
- AT