SQL Server does not exist or access denied Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to ASP.Net and I am trying to to make simple SQLConnection to the
pubs database that comes with SQLServer2000.
I have attempted many things to try and resolve it. I tried adding ASPNET
user in the security section of SQLServer2000, and I also removed the XP
firewall on the machine.
My SQLServer2000 and ASP.Net development are on the same server and I can
even make a connection to the database through VS environment.
The following is my VB.net connection string:
Dim conn As New
SqlConnection("server=.;trusted_connection=True;database=pubs")
 
Yes the error is as follows:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction) +484

System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
before.WebForm1.Page_Load(Object sender, EventArgs e) in
C:\AspDotNet\labs\AspDotNetIntroLab3\before\default.aspx.vb:26
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
 
Try server=(local)

And using Query Analyzer, you can check Windows Authentication and get in
ok?

Jeff

Sal said:
Yes the error is as follows:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean&
isInTransaction) +484
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnec
tionString options, Boolean& isInTransaction) +372
 
Back
Top