远程连接到SQL Server Express实例

时间:2016-10-20 14:44:10

标签: sql-server

尝试连接到远程SQL Express实例时收到以下错误:

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

我最初尝试使用SQL Server凭据访问服务器。没有成功。

我有:

  1. 确保启用远程连接
  2. 确保启用TCP协议
  3. 确保启动SQL Server Browser
  4. 然后我尝试了" Run As"命令以具有适当凭据的另一个用户身份运行ssms.exe。我仍然收到同样的错误。问题可能是什么?

    一些具体问题:

    • "对"是什么?服务器名称 - 我一直在放入实例 姓名"姓名\姓名"?

    • 当我以不同的用户身份运行时,适当的是什么 身份验证模式:Windows,SQL Server,Active Directory密码, 或Active Directory集成?

    感谢您的帮助。远程实例是SQL Server 2008 R2。

1 个答案:

答案 0 :(得分:1)

动态端口输入必须与SQLExpress登录一起提供

SERVERNAME \ SQLEXPRESS,45490

`Data Source=127.2.3.4\SQLEXPRESS,1433;Network Library=DBMSSOCN;Initial Catalog=dbase;User ID=sa;Password=password`
相关问题