环境:Vista SP1,SQL Server Express 2005
我可以使用SQL Server Management Studio连接到我的localhost SQL Server,使用Windows身份验证,并且据我所知,所有默认参数都包括网络协议。
现在我尝试使用sqlcmd.exe连接无效:
C:\Program Files\Microsoft SQL Server\90\Tools\Binn>sqlcmd -S \\PCSERGEHOME\SQLE
XPRESS
HResult 0x57, Level 16, State 1
Named Pipes Provider: Invalid parameter(s) found [87].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establi
shing a connection to the server. When connecting to SQL Server 2005, this failu
re may be caused by the fact that under the default settings SQL Server does not
allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
我也试过使用-U PCSERGEHOME \ Serge。然后我提示输入密码,但结果是一样的。
TIA求助。
答案 0 :(得分:4)
失去领先的\\
实际上,请尝试。\ XPRESS(句号斜杠实例)
答案 1 :(得分:0)
尝试