Solved

Unable to Connect to Database Engine

Posted on 2008-10-12
4
1,547 Views
Last Modified: 2012-05-05
I recently installed SQL Server 2005 Developers edition on Windows Vista Home Premium to run through some tutorials but am continuously getting the below error when trying to connect to database engine using Windows authentication (however I am able to connect to Analysis Services.

TITLE: Connect to Server
------------------------------

Cannot connect to %computername%.

------------------------------
ADDITIONAL INFORMATION:

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=5&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
0
Comment
Question by:reedsdomain
  • 2
4 Comments
 
LVL 42

Expert Comment

by:dqmq
Comment Utility
Start the Surface Area Configuration tool (found in the Start Menu).  You can enable remote connections there.  Then restart the server.
0
 
LVL 35

Expert Comment

by:David Todd
Comment Utility
Hi,

When you installed SQL, did you add your user account to the SQL Administrator?

HTH
  David
0
 

Author Comment

by:reedsdomain
Comment Utility
When  SQL Server first installed it failed during the script that was supposed to handle the addition of the windows admin account to SQL server.  It appears as though one of the services failed while the script was running.  I thought I had worked around this by creating a new Windows admin account which was then trusted, however I followed the steps from dqmq and enabled remote connections and now the error I get when trying to connect to the Database Engine is "Login Failed" .  Is there anyway to workaround this short of a full uninstall/reinstall?
0
 
LVL 42

Accepted Solution

by:
dqmq earned 500 total points
Comment Utility
You are making progress.  "Login Failed" has numerous potential causes--it's time to starting looking for a more descriptive message.  Start by logging on using SQL authentication and the SA or anothe administrtor account.  Assuming that works, it's just a tweak to Windows Authentication working.  Make sure the windows account is defined in the SQL Server Logins.   Make sure that login has a valid default database and permission to connect.  Make sure the windows account is defined as a user in the default database.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now