0

I'm connecting my SQL Server 2012. But I get below error message, connection failed. I'm not sure about my server name (I forgot).

Is there anyway to get the database server name, Windows authentication username and password without logging to SQL Server?

Cannot connect to MY-SERVER.

ADDITIONAL INFORMATION:

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: 2)

3
  • Is SQL server installed on same or different machine? In both cases, server name is going to be computer name, but you may also have to know the instance name if it's different from default. Commented Oct 24, 2014 at 10:10
  • In same machine. I gave Default instance when I installed Commented Oct 24, 2014 at 10:28
  • If it is local you can use .\ as server name. Commented Oct 24, 2014 at 11:13

1 Answer 1

1

use ., localhost or 127.0.0.1 for local server with default instance.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.