Database Connection Issues

B

bh

I have an ASP.NET page, created in VS.NET 2003 which connects to a SQL
Server 2000 Database on our network, using a connection string, as follows:

Dim SQLConnString As String = "data source=SERVERNAME;initial
catalog=DB;User ID=MyWebUser;Password=WebUserPassword"

The server is on our network, but a different machine from both of the web
servers I'm trying.

Web Server 1: When I run this from Visual Studio (running on my laptop), it
works fine every time.

Web Server 2: When I run this from another web server within our network,
SOMETIMES it works fine, and other times I get:

SQL SERVER DOES NOT EXIST OR ACCESS DENIED

If I go back & run it from Visual Studio on my laptop, again, it seems to
SOMETIMES temporarily correct the issue from our other web server other
times it has no effect.

Does anyone have any idea as to what might be causing this? Thanks in
advance.

BH
 
K

Kevin Spencer

Try using the IP address of the server. It may be a name resolution issue.
If so, the IP address will clear it up.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
B

bh

Nope. That just caused the same error on the working copy, running straight
out of Visual Studio, from the laptop. Any other ideas?

Thanks for trying,
BH
 
P

prabhupr

1. Try using IP Address
2. Try changing the Network connectivity (TCP/IP, Named Pipes...)
 
N

neilmcguigan

don't forget the instance name if you have one:

ServerName\InstanceName

for sql express, it's:

ServerName\SqlExpress (um, i think :) )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top