当我从我的sql Server 2008实例上的cmd运行它时:
sqlcmd -U sa -S mymachinen_name\MSsqlSERVER
我得到密码的提示,之后我得到了这个:
Password:
HResult 0x57,Level 16,State 1 sql Server Network Interfaces: Connection string is not valid [87].
sqlcmd: Error: Microsoft sql Server Native Client 10.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..
sqlcmd: Error: Microsoft sql Server Native Client 10.0 : Login timeout
expired.
我启动了sql Server浏览器服务,也可以使用Windows身份验证通过Management Studio登录.
也找到了这个KB article,但这是针对sql Server 2005/2000的.