Solved

SQL - errir connect to SQL Server

Posted on 2013-01-25
7
441 Views
Last Modified: 2013-01-25
I just install a SQL Server 2008 R2 on a VM.  As I try to login, I got the following error message.  I check the Task Manager (See file attached). SQL Server is running.  Does anyone can tell me what is the problem?
Thanks.


===================================

Cannot connect to TempoTangoSQL.

===================================

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) (.Net SqlClient Data Provider)

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

------------------------------
Error Number: 53
Severity: 20
State: 0


------------------------------
Program Location:

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
Capture01.PNG
0
Comment
Question by:tommym121
[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
  • 3
7 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 38821009
I believe you have to enable remote connections, TCP/IP connections, and SQL Authentication.  And you need to create a user other than 'sa' to connect with.  It is not recommended to use 'sa' because it has the highest privileges and can do anything.

In SSMS, the Properties page for the server let you set Enable Remote Connections and on the Security tab, you can enable SQL Authentication.
SQL Server PropertiesIn the SQL Server Configuration Manage, you can set the IP addresses and port number you need to use.
SQL TCP/IP settingsYou also need to enable the 'sqlbrowser.exe' service if you are trying to connect by 'named instances'.
0
 

Author Comment

by:tommym121
ID: 38821029
I cannot even able to login yet. Hence, I can not get to the property of the server instance.
(See Capture02.png)
I try to browse for server name,  nothing appear in Local or Network (See Capture03,png)
I have enable the NamePiped of SQL Server Network Configuration.

I did stop and restart the SQL Server. Problem still exists.
Capture02.PNG
Capture03.PNG
0
 

Author Comment

by:tommym121
ID: 38821044
Sorry forget to attach in the above post
Capture04.PNG
0
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 500 total points
ID: 38821067
On my machine in the login for SSMS, the servername is shown as "MACHINENAME\SQLSERVERNAME" and the username is specified as "MACHINENAME\Username", not just 'Username'.
0
 

Author Comment

by:tommym121
ID: 38821110
I add the MACHINENAME, same issue
0
 

Author Closing Comment

by:tommym121
ID: 38821129
Thanks.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 38821180
You're welcome, thanks for the points.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Many to one in one row 2 48
Cannot connect to SQL express 2008 R2 installed on Server 2016 5 50
Please explain Equi-join 3 44
Creating a View from a CTE 15 49
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

759 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