Potential causes of the "SQL Server does not exist or access denied" error message

Extended support for SQL Server 2005 ended on April 12, 2016

If you are still running SQL Server 2005, you will no longer receive security updates and technical support. We recommend upgrading to SQL Server 2014 and Azure SQL Database to achieve breakthrough performance, maintain security and compliance, and optimize your data platform infrastructure. Learn more about the options for upgrading from SQL Server 2005 to a supported version here.

Note: For troubleshooting connection issues to SQL Server, use the following troubleshooter: Solving Connectivity errors to SQL Server

Summary

"SQL Server does not exist or access denied" is a generic Microsoft Data Access Components (MDAC) message that indicates that the computer that is running Microsoft SQL Server cannot be contacted. This generic message has many potential causes.

Additionally, the following error messages also have similar causes:
SQL Server is unavailable or does not exist.
The specified SQL Server is not found.

Important The "SQL Server does not exist or access denied" message does not indicate the following:
  • The logon process to SQL Server failed.
  • SQL Server does not have the correct permissions to process the query.
  • You cannot use SQL Server authentication because only Windows authentication is permitted.

You are using "LocalHost" in an ADO connection string. This is not supported; use "(local)" or the computer name instead. Per "SOX001027700080 SQL INF Server - Connectivity: Using LocalHost" this is not supported and it may or may not work. However, some "How To" articles use LocalHost in their examples.
Author: CGROSS (2002-08-21T09:32:00) Edit Reviewer: V-RROYER (2002-10-17T13:08:00) Tech Reviewer: UTTAMKP (2002-09-27T13:25:00)
Properties

Article ID: 328306 - Last Review: Jan 23, 2017 - Revision: 2

Microsoft SQL Server 2000 Standard Edition, Microsoft SQL Server 7.0 Standard Edition, Microsoft SQL Server 2005 Standard Edition, Microsoft SQL Server 2005 Express Edition, Microsoft SQL Server 2005 Developer Edition, Microsoft SQL Server 2005 Enterprise Edition, Microsoft SQL Server 2005 Workgroup Edition

Feedback