Why can't I connect to my SQL database using ASP.NET
(VB.NET) and ADO.NET?
I get the following error:
System.Data.Sql Client.SqlExcep tion: Login failed for
user 'DEJO\ASPNET'. at
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) at
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon
nection(SqlConn ectionString options, Boolean&
isInTransaction ) at
System.Data.Sql Client.SqlConne ction.Open() at
MyWebSite.WebFo rm2.Page_Load(O bject sender,
EventArgs e) in C:\Documents and
Settings\Dejan\ VSWebCache\DEJO \MyWebSite\WebF orm2.aspx.vb:l
ine 29
My connection is:
Imports System.Data.Sql Client
--
Const DBString As String = "Integrated
Security=SSPI;I nitial Catalog=Northwi nd;Data Source=
(local)"
Dim cnn As New SqlConnection(D BString)
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.Sql Client.SqlExcep tion: Login failed for
user 'DEJO\ASPNET'. at
System.Data.Sql Client.Connecti onPool.GetConne ction
(Boolean& isInTransaction ) at
System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledCon
nection(SqlConn ectionString options, Boolean&
isInTransaction ) at
System.Data.Sql Client.SqlConne ction.Open() at
MyWebSite.WebFo rm2.Page_Load(O bject sender,
EventArgs e) in C:\Documents and
Settings\Dejan\ VSWebCache\DEJO \MyWebSite\WebF orm2.aspx.vb:l
ine 29
My connection is:
Imports System.Data.Sql Client
--
Const DBString As String = "Integrated
Security=SSPI;I nitial Catalog=Northwi nd;Data Source=
(local)"
Dim cnn As New SqlConnection(D BString)
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.
Comment