Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error connecting to SQL Server

Posted on 2014-07-24
6
Medium Priority
?
429 Views
Last Modified: 2014-07-24
A network-related or instance-specific error occurred while establishing a connection to
SQL Server. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured
to allow remote connections. (provider: Named Pipes Provider, error: 40 -
Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

Explanation

The SQL Server client cannot connect to the server. This error could occur because either the client cannot resolve the name of the server or the name of the server is incorrect.

User Action

Make sure that you have entered the correct server name on the client, and that you can resolve the name of the server from the client. To check TCP/IP name resolution, you can use the ping command in the Windows operating system.
 
How do I ping?

Thanks,
0
Comment
Question by:Dovberman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
Jerry_Justice earned 2000 total points
ID: 40217402
It looks like it is trying to connect using named pipes.

Is TCP/IP enabled on this workstation?  Start/Run - cliconfg

Make sure TCP/IP is an enabled protocol.

If you want to ping the server: Start/Run - cmd
At the C:> prompt type "ping servername"

That doesn't help a whole lot if SQL Server you are connecting to is a named instance, but at least it tells you if that server is responding to a ping by name.

Last - can other workstations connect remotely to this SQL server?  If not, is SQL Browser service running on the server?
1
 

Author Comment

by:Dovberman
ID: 40217819
This is a local installation of SQL Server.  I just re-installed. The installation was successful.

However, I cannot find the new instance.
0
 
LVL 3

Expert Comment

by:Jerry_Justice
ID: 40217841
If you are running Windows Firewall, turn it off.  It may be blocking access.  But you still need to make sure SQL Browser service is running.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Dovberman
ID: 40218019
I can connect with Windows authentication only.
0
 

Author Comment

by:Dovberman
ID: 40218177
I got it.

From the SQL Server Management Studio,

Use Windows Authentication to connect without a password.

Once connected, Choose Security-->Logins.

Choose SQL Server Authentication.

Enter a login name.  Enter a password .
0
 

Author Closing Comment

by:Dovberman
ID: 40218178
Thanks for the ideas.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question