473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

'SQL Server does not exist or access denied'

Hi all,

A very frustrating problems - searches on the net haven't
found much of relevance.

I have two SQL databases - a TEST and a LIVE. My asp.net
application, with C# codebehind, uses the SqlConnection
class to connect.

When I connect to my LIVE database, everything works fine.
But when I try to connection to the TEST database I get
the following error message:

"SQL Server does not exist or access denied"

I can connect to the datasource using the same connection
string and methods in a Windows Forms Application...

Please can anyone help?
Thanks
Chris
Nov 17 '05 #1
4 1340
maybe your connection is bad.
"Graham Hurst" <gh****@radacall.co.uk> escreveu na mensagem
news:57****************************@phx.gbl...
Hi all,

A very frustrating problems - searches on the net haven't
found much of relevance.

I have two SQL databases - a TEST and a LIVE. My asp.net
application, with C# codebehind, uses the SqlConnection
class to connect.

When I connect to my LIVE database, everything works fine.
But when I try to connection to the TEST database I get
the following error message:

"SQL Server does not exist or access denied"

I can connect to the datasource using the same connection
string and methods in a Windows Forms Application...

Please can anyone help?
Thanks
Chris

Nov 17 '05 #2
There is no problem with the connect string as far as I
can see - I use the same for both my ASP.net application
and also a Windows Forms application.
-----Original Message-----
maybe your connection is bad.
"Graham Hurst" <gh****@radacall.co.uk> escreveu na mensagemnews:57****************************@phx.gbl...
Hi all,

A very frustrating problems - searches on the net haven't found much of relevance.

I have two SQL databases - a TEST and a LIVE. My asp.net
application, with C# codebehind, uses the SqlConnection
class to connect.

When I connect to my LIVE database, everything works fine. But when I try to connection to the TEST database I get
the following error message:

"SQL Server does not exist or access denied"

I can connect to the datasource using the same connection string and methods in a Windows Forms Application...

Please can anyone help?
Thanks
Chris

.

Nov 17 '05 #3
What is the connstring. If you are not using (local) or localhost, you do
not have the correct string on one or the other.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Graham Hurst" <gh****@radacall.co.uk> wrote in message
news:57****************************@phx.gbl...
Hi all,

A very frustrating problems - searches on the net haven't
found much of relevance.

I have two SQL databases - a TEST and a LIVE. My asp.net
application, with C# codebehind, uses the SqlConnection
class to connect.

When I connect to my LIVE database, everything works fine.
But when I try to connection to the TEST database I get
the following error message:

"SQL Server does not exist or access denied"

I can connect to the datasource using the same connection
string and methods in a Windows Forms Application...

Please can anyone help?
Thanks
Chris

Nov 17 '05 #4
Hi Graham,

Check if the user, specified in the connections string in your web.config,
enought rights has to acces your LIVE database!!!

Kind Regards,
Adil

"Graham Hurst" <gh****@radacall.co.uk> wrote in message
news:57****************************@phx.gbl...
Hi all,

A very frustrating problems - searches on the net haven't
found much of relevance.

I have two SQL databases - a TEST and a LIVE. My asp.net
application, with C# codebehind, uses the SqlConnection
class to connect.

When I connect to my LIVE database, everything works fine.
But when I try to connection to the TEST database I get
the following error message:

"SQL Server does not exist or access denied"

I can connect to the datasource using the same connection
string and methods in a Windows Forms Application...

Please can anyone help?
Thanks
Chris

Nov 17 '05 #5

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

Similar topics

2
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...
6
by: Bob | last post by:
Having trouble getting started. I created an instance of MSDE called VSDOTNET on a computer with the name of sysdev. Using MS SQL Web Adminstrator I created a database called temp with a...
4
by: Thomas Scheiderich | last post by:
I get an error from trying to connect to my Sql6.5 server (which is why I am using Ole). It says the server doesn't exist or the password is wrong. I can't understand that because I use...
3
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...
9
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...
1
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.