sqlcmd无法登陆的问题!

zhpsam109 2005-11-09 02:45:10
C:\Documents and Settings\Administrator>sqlcmd
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 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.

C:\Documents and Settings\Administrator>

请教如何修改?
...全文
380 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
mywangzhao 2005-11-15
  • 打赏
  • 举报
回复
你先看看 sqlcmd -?的帮助

然后可能是你需要自己设置登陆一下:
sqlcmd -s yourservername -u youruser -p yourpassword

try again
zhpsam109 2005-11-11
  • 打赏
  • 举报
回复
自己顶一下!
zhpsam109 2005-11-10
  • 打赏
  • 举报
回复
协议是好的!

提示: does not
allow remote connections..怎么回事?
superhasty 2005-11-09
  • 打赏
  • 举报
回复
检查一下SqlServer2005的服务器和客户端连接协议,如TCP/IP协议等是否已经配置好。
天地客人 2005-11-09
  • 打赏
  • 举报
回复
没看明白?楼主,再详细点!

=========================================================
我的回复,尽可能为你分忧解难!
BLOG:blog.csdn.net/softj --欢迎光临,有更多信息等着你!
QQ群:8476022专研数据库 --大家进来聊一聊!
MSN:softj@msn.com --这不常用!
Mail:zj.wj@163.com --有什么问题可以和我来EMAIL!
=========================================================

6,129

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 新技术前沿
社区管理员
  • 新技术前沿社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧