从 Visual Studio 2010 我可以连接到我的 SQL Server Express 2005 实例 - 通过指定 Windows 身份验证。但是,当我使用它不起作用的命令时:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>osql -S SQLEXPRESS -U Quixote
nt -P Password.0
[SQL Native Client]Named Pipes Provider: Could not open a connection to SQL
Server [53].
[SQL Native Client]Login timeout expired
[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 settings SQL Server does not allow remote
connections.
顺便说一句,上面实际上并没有列出我的 Windows 名称和密码 - 我只是替换了示例。我究竟做错了什么?