HiveBrain v1.2.0
Get Started
← Back to all entries
gotchasqlMinor

Why does server name need to be specified when accessing local instances?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
localwhyinstancesneednamedoeswhenserveraccessingspecified

Problem

Even though I have direct access to the physical database machine, I have to specify dbmachine\sql in the connection field, rather than just the instance name. Why is that?

Solution

Quite simply, client tools need to know explicitly which machine you're trying to connect to. This is like trying to access http://localhost/test_site by typing test_site into your browser.

For SQL Server you can indicate the local machine in a variety of ways:

  • machine_name\instance



  • (local)\instance



  • 127.0.0.1\instance



  • .\instance

Context

StackExchange Database Administrators Q#129398, answer score: 7

Revisions (0)

No revisions yet.