我无法连接到Microsoft SQL Server 2012的本地实例,这是我到目前为止所尝试的:
SQL Server配置管理器
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身份验证的线索也都是适用的。