J
Justin Ray
I've created an ASP.NET application that runs on my local IIS server. It
needs to connect to a SQL Server database on a different machine. The SQL
server is setup for "mixed mode" authentication.
As you can tell from the connection string in the following code, I am using
SQL Authentication.
Dim sConn As String = "Data Source=DEV01;Initial
Catalog=Northwind;User=sa;Password=fakepw"
Dim cn As New SqlConnection(sConn)
cn.Open()
When this code executes I get the following error:
[SqlException: SQL Server does not exist or access denied.]
The exact same code WORKS if I create a Windows form application. It's only
when I run as an ASP.NET app that I have the problem.
Can you give me some direction on this?
Thanks,
Justin
needs to connect to a SQL Server database on a different machine. The SQL
server is setup for "mixed mode" authentication.
As you can tell from the connection string in the following code, I am using
SQL Authentication.
Dim sConn As String = "Data Source=DEV01;Initial
Catalog=Northwind;User=sa;Password=fakepw"
Dim cn As New SqlConnection(sConn)
cn.Open()
When this code executes I get the following error:
[SqlException: SQL Server does not exist or access denied.]
The exact same code WORKS if I create a Windows form application. It's only
when I run as an ASP.NET app that I have the problem.
Can you give me some direction on this?
Thanks,
Justin