0

I can't find how to identify which of my locally installed SQL instances should be the one that get the (local) designation. I looked in SQL Configuration manager and there isn't one defined that I can see.

1
  • What do you mean by the "(local) designation"? As in an instance that is running locally? You can run multiple instances locally. Commented Sep 10, 2022 at 19:22

1 Answer 1

1

It's always the default instance (the one running under the service named "MSSQLSERVER").

But connections to (local) will try various protocols, and if you've got your default instance stopped, or have disabled the Shared Memory, then clients connecting to (local) will connect to whichever instance listens on port 1433 or is listening on the \\.\pipe\sql\query pipe. Both of which can be configured in the Configuration Manager.

If doing this I would probably have only TCP/IP enabled in the protocols for the server for simplicity.

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

5 Comments

I don't have MSSQLSERVER, I turned that off and am trying to designate a different DB as (local)
See updated answer
No luck, I've disabled all mssqlserver services and network protocols. I enabled all msslqserver01 services and protocols and restarted, but (local) doesn't connect. Its listening on NAMED PIPE \\.\pipe\MSSQL$MSSQLSERVER01\sql\query and NOT \\.\pipe\sql\query. I could change it, but I'm concerned that will start a new issue.
As I didn't have an alternative I changed it to use \\.\pipe\sql\query and now it is connected.
@TomMcDonald: Note that the SQL Server configuration manager will allow you to define aliases for anything, including things that are normally hard-coded, like (local) and .. Effectively you can point (local) to any server and any instance you like, so aliasing (local) to localhost\instancename to point it to a specific instance will work regardless of what's actually running (though it might be disorienting to people not expecting an alias).

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.