Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2004, 01:31 PM
Authorized User
 
Join Date: Jul 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server Does Not Exist or Access Denied

Hello Everyone and thanks for your help in advance. I am racking my brains on this one. I have a new installation of Windows 2003 Server combined with SQL Server 2000. I have ASP.Net pages that are working perfectly fine on a test server. However, when I try the web pages on the new server, I am presented with the error message:

SQL Server Does Not Exist or Access Denied

I have verified that the server is allowing both Windows and SQL Server authentication. I have installed all of the latest services packs. In the web.config file, I am using the following connection string:

server=(local);uid=sa;pwd=password;database=Northw ind

I cannot figure out what the problem is. Any help is greatly appreciated. Thanks.

 
Old September 18th, 2004, 02:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Does the SQL server reside on the same machine or you are trying to connect to the one on old test server?

_________________________
- Vijay G
Strive for Perfection
 
Old September 30th, 2004, 06:49 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

I feel that u had ur test database on local test machine. But now u r trying to run on another machine. The connection string says to connect to a local server which I am sure doesn't exist /installted on the machine u r running the page.

In ur web.config file or anywhere use the connectioj string with the server name like

server=MyServer;uid=sa;pwd=password;database=North wind.





B. Anant
 
Old September 30th, 2004, 09:37 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also, change your uid to something other than the sa. Keep this to an account that does not have many rights to the SQL Server database.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server does not exist or access denied happygv SQL Server 2000 0 April 9th, 2008 02:27 AM
SQL Server does not exist or access denied jennypretty Classic ASP Databases 3 May 18th, 2007 11:43 AM
SQL Server does not exist or access denied. jimbeam36 BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 3rd, 2004 08:51 AM
SQL Server does not exist or access denied haidee_mccaffrey Classic ASP Databases 19 June 28th, 2004 09:38 PM
SQL Server does not exist or access denied. nitinmailbox All Other Wrox Books 1 June 25th, 2003 06:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.