sqlcmd 连接不上
疯狂石头_ 2011-03-08 06:04:33 在cmd输入 sqlcmd -S .\sqlexpress 可以进行交互式
而输入sqlcmd 或者 执行一个sql脚本却不行,提示
HResult 0x2,Level 16,State 1
Named Pipes Provider: Could not open a connection to SQL Server[2]
Sqlcmd:Error:Microsoft SQL Native Client: An error has occurred while estableshing a connectiong to the server。When connectiong to SQL Server 2005,this failre may be caused by the fact that under the default setting SQL Server does not allow remote connectiongs..
Sqlcmd: Error: Microsoft SQL Native Client: login timeout expired.