◆◇◆ Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired. ◆◇◆
我运行 sqlcmd 的时候报如下的错:
HResult 0x2, Level 16, State 1
Named Pipes Privider: Could not open a connection to SQL Server [2].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default setting SQL Server does not allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
请问一下如何解决?
问题点数:20、回复次数:2Top
1 楼huailairen(流浪猫--很想养只猫,带着它到处流浪。)回复于 2006-03-20 22:29:29 得分 20
很明显不能建立连接,检查下服务是不是起来了,还有就是能不能连接到数据库服务器的1433端口,用telnet 服务器ip 1433 试下,假如不通 检查下防火墙。Top
2 楼wanbo(灵)回复于 2006-03-21 22:30:09 得分 0
解决了,这样就OK了:
sqlcmd -S .\SQLEXPRESS
由于 SQLEXPRESS 不是默认数据库,所以必须指定实例名。Top




