D
Dejan Lazic
Why can't I connect to my SQL database using ASP.NET
(VB.NET) and ADO.NET?
I get the following error:
System.Data.SqlClient.SqlException: Login failed for
user 'DEJO\ASPNET'. at
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledCon
nection(SqlConnectionString options, Boolean&
isInTransaction) at
System.Data.SqlClient.SqlConnection.Open() at
MyWebSite.WebForm2.Page_Load(Object sender,
EventArgs e) in C:\Documents and
Settings\Dejan\VSWebCache\DEJO\MyWebSite\WebForm2.aspx.vb:l
ine 29
My connection is:
Imports System.Data.SqlClient
--
Const DBString As String = "Integrated
Security=SSPI;Initial Catalog=Northwind;Data Source=
(local)"
Dim cnn As New SqlConnection(DBString)
cnn.Open()
I use VS.NET 2003, Windows XP SP1, computer's name is
DEJO, SQL Server 2000 is on local computer.
I tried with both permission settings, "Use same
permissions as the root Web server"
and "Use unique permissions for this Web application".
What (Where) do I have to set up?
Thanks in advance.
(VB.NET) and ADO.NET?
I get the following error:
System.Data.SqlClient.SqlException: Login failed for
user 'DEJO\ASPNET'. at
System.Data.SqlClient.ConnectionPool.GetConnection
(Boolean& isInTransaction) at
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledCon
nection(SqlConnectionString options, Boolean&
isInTransaction) at
System.Data.SqlClient.SqlConnection.Open() at
MyWebSite.WebForm2.Page_Load(Object sender,
EventArgs e) in C:\Documents and
Settings\Dejan\VSWebCache\DEJO\MyWebSite\WebForm2.aspx.vb:l
ine 29
My connection is:
Imports System.Data.SqlClient
--
Const DBString As String = "Integrated
Security=SSPI;Initial Catalog=Northwind;Data Source=
(local)"
Dim cnn As New SqlConnection(DBString)
cnn.Open()
I use VS.NET 2003, Windows XP SP1, computer's name is
DEJO, SQL Server 2000 is on local computer.
I tried with both permission settings, "Use same
permissions as the root Web server"
and "Use unique permissions for this Web application".
What (Where) do I have to set up?
Thanks in advance.