473,569 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL Server does not exist or access denied Problem

Sal
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=.;truste d_connection=Tr ue;database=pub s")

Jul 21 '05 #1
3 1339
Do you get an error?
"Sal" <Sa*@discussion s.microsoft.com > wrote in message
news:63******** *************** ***********@mic rosoft.com...
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=.;truste d_connection=Tr ue;database=pub s")

Jul 21 '05 #2
Sal
Yes the error is as follows:
[SqlException: SQL Server does not exist or access denied.]
System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean&
isInTransaction ) +484

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne ctionString options, Boolean& isInTransaction ) +372
System.Data.Sql Client.SqlConne ction.Open() +384
before.WebForm1 .Page_Load(Obje ct sender, EventArgs e) in
C:\AspDotNet\la bs\AspDotNetInt roLab3\before\d efault.aspx.vb: 26
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +731
"Jeff Dillon" wrote:
Do you get an error?
"Sal" <Sa*@discussion s.microsoft.com > wrote in message
news:63******** *************** ***********@mic rosoft.com...
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=.;truste d_connection=Tr ue;database=pub s")


Jul 21 '05 #3
Try server=(local)

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

Jeff

"Sal" <Sa*@discussion s.microsoft.com > wrote in message
news:71******** *************** ***********@mic rosoft.com...
Yes the error is as follows:
[SqlException: SQL Server does not exist or access denied.]
System.Data.Sql Client.Connecti onPool.GetConne ction(Boolean&
isInTransaction ) +484

System.Data.Sql Client.SqlConne ctionPoolManage r.GetPooledConn ection(SqlConne c
tionString options, Boolean& isInTransaction ) +372 System.Data.Sql Client.SqlConne ction.Open() +384
before.WebForm1 .Page_Load(Obje ct sender, EventArgs e) in
C:\AspDotNet\la bs\AspDotNetInt roLab3\before\d efault.aspx.vb: 26
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +731
"Jeff Dillon" wrote:
Do you get an error?
"Sal" <Sa*@discussion s.microsoft.com > wrote in message
news:63******** *************** ***********@mic rosoft.com...
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=.;truste d_connection=Tr ue;database=pub s")


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2133
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We...
2
1591
by: Chris Stewart | last post by:
We're having an issue here at school with trying to access a SQL Server database from a .NET application. As a department, we roll out a generic image to all of our lab computers. For some reason we were getting "SQL Server does not exist or access denied" errors ( http://www.isy.vcu.edu/~cstewart/sqlerror.jpg ). One of the lab machines in...
4
5603
by: hooi | last post by:
I'm new to Visual Studio.NET and Visual Basic.NET. While trying to run the sample application, it shows an error message as shown below. I have an SQL Server containing the sample database Northwind used in this application. Authentication mode set in Web.config is Windows; Mixed mode in the SQL Server. Any idea how I can resolve this...
2
3273
by: george r smith | last post by:
Gentlemen, I know that this problem has happened before and I searched and tried all solutions but problem is not solved. I install asp.net community starter kit with some help from this newsgroup.Install went fine, database was created on the SQL server machine but when I bring up browser and try to connect I get:
3
567
by: Olivogt | last post by:
Hello, I was just puting an application on the web server but it did not work as usual... - I do develop on my notebook and move released applications to the Web server - both have Sql Server 2000 - In this particular application I have a form login based on Username/Password from a database table - the start page of the application has a...
9
2123
by: Steven Ung | last post by:
Hello all, I'm having the following error dump from an ASP.net application. The program is to calculate MRP and it involves complex queries looping thru hundreds of records in an few SQL 2000 table. After running for 2~3 minutes, the below error is shown. I've search high and low, but can't find anything close to solving this problem. ...
1
2057
by: ssp | last post by:
G'Day All, I have a web application sitting on my laptop and a Sql Server 2000 database on our INTRANET server running Windows 2003. Up until recently I was able to access the database using my application. But recently it started to give me the error as below: **************** SQL Server does not exist or access denied. Exception...
5
2398
by: D Godwin | last post by:
I am running a web service on my local machine (using standard VS.NET test pages) that is attempting to access a SQL database on a network server. C# code looks something like this: public string GetSomething() { SqlConnection con = new SqlConnection(); con.ConnectionString = ConfigurationSettings.AppSettings.ToString();
1
4182
by: Atia Amin | last post by:
Hi, I am a new member. Hello to every one. I am new in ASP.NET area. I wrote an ASP.NET web application which was running ok with my old laptop. Currently I have given a new laptop. Now I copied my application to the new laptop and I am experiencing as SQL Server connection error: "SQL Server does not exist or access denied". Following is a...
1
4620
by: vamshika | last post by:
hi, I got a serious Problem. I get "Server does not exist or access denied" with 80004005 as the error code. the win2003 server uses all the latest components(like iis6,jet..etc) and is upto date. The Asp website and its database(sql server) are in two different servers. Can any one help me out. Did enybodyelse come accross such issue?????? ...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.