473,661 Members | 2,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'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 1351
maybe your connection is bad.
"Graham Hurst" <gh****@radacal l.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****@radacal l.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****@radacal l.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****@radacal l.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
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 also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
6
467
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 table called customer. In Visual Studio .NET I can see and access the data in the table. The dataconnection is called sysdev\vsdotnet\temp.dbo
4
216
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 essetially the same connection scripts on my ASP pages and it works fine. Here is my ASP connection that works fine: ***************************************************************** Set connectionToDatabase=Server.CreateObject("ADODB.Connection")...
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 datagrid, both pages are accessing ONE database but an other table - It seems that the username and...
9
2130
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. The same ASP page, with less data however works without any issue and is still on test on our local...
1
2058
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 Details: System.Data.SqlClient.SqlException: SQL Server does
1
4185
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 simply ASP.NET application to test the connection and I am getting following error: For your...
0
8343
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8855
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8758
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4179
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1743
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.