Reputation: 2532
I receive the following error when trying to connect to a remote SQL Express instance:
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
I initially tried accessing the server with SQL Server credentials. No success.
I have:
Then I tried the "Run As" command to run ssms.exe as another user with appropriate credentials. I still receive the same error. What might the issue be?
A couple of specific questions:
What is the "right" server name - I have been putting in the instance name "NAME\NAME"?
When I am running as a different user, what is the appropriate authentication mode: Windows, SQL Server, Active Directory Password, or Active Directory Integrated?
Thanks for any help. The remote instance is SQL Server 2008 R2.
Upvotes: 2
Views: 2704
Reputation: 3399
Dynamic port entry has to be given along with the SQLExpress login
SERVERNAME\SQLEXPRESS,45490
`Data Source=127.2.3.4\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=dbase;User ID=sa;Password=password`
Upvotes: 2