SQL Server 2012 - 无法连接到本地实例

时间:2015-02-25 12:45:49

标签: sql-server

我无法连接到Microsoft SQL Server 2012的本地实例,这是我到目前为止所尝试的:

SQL Server配置管理器

  • 启用TCP / IP
  • 启用命名管道
  • 启用共享内存

SQL Server,SQL Server Browser和SQL Server Agent服务都在运行。

我已经验证了有一个SQL Server实例:sqlcmd.exe -L此命令为我提供了以下内容:

Servers:
    (local)
    MON-W530

SQLCMD

sqlcmd.exe -S MON-W530\MSSQLSERVER -E提供以下输出:

Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : SQL Server Network Interfaces: Connection string is not valid [87]. .
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..

OSQL

OSQL.EXE -S MON-W530\MSSQLSERVER -E提供以下输出(与上面的sqlcmd.exe相同)

[SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87].
[SQL Server Native Client 11.0]Login timeout expired
[SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.

它是Microsoft SQL Server 2012 Developer Edition的全新安装,任何帮助都是适用的。

修改

使用SQL Server Management Studio 2012,我没有为Windows身份验证指定用户名和密码的选项,所以我猜它没有启用,任何关于启用Windows身份验证的线索也都是适用的。

0 个答案:

没有答案