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.

...全文
247 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
guoxuqu 2011-03-09
  • 打赏
  • 举报
回复
sqlcmd后面接的参数有的要大写
guoxuqu 2011-03-09
  • 打赏
  • 举报
回复
是不是大小写的问题呀?
xuyuchends 2011-03-09
  • 打赏
  • 举报
回复
sqlserver configuration manager->sql server 2005 network configuration->protocols for sqlexpress
->tcp/ip enable
纯唇Yu弄 2011-03-09
  • 打赏
  • 举报
回复
数据库配置
永生天地 2011-03-09
  • 打赏
  • 举报
回复
sql server 2005 连接与登陆失败问题
http://blog.csdn.net/xys_777/archive/2010/06/21/5684510.aspx
liwashington 2011-03-08
  • 打赏
  • 举报
回复
如果配置都对,看下防火墙是否开了数据库端口呢?
Rotel-刘志东 2011-03-08
  • 打赏
  • 举报
回复
sql server配置问题tcp/ip是否启用了。
命名管道是否启用了。
王向飞 2011-03-08
  • 打赏
  • 举报
回复
the fact that under the default setting SQL Server does not allow remote connectiongs..


开启远程连接
快溜 2011-03-08
  • 打赏
  • 举报
回复
你的服务不接受远程访问。

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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