[英]SQL Server 2005 Express
Can anyone decipher this error message? 谁能破译此错误消息? Somebody gave me a SQL script and when I run it, I get this error:
有人给我一个SQL脚本,当我运行它时,出现此错误:
Thanks. 谢谢。
If it is an instance of SQL Server Express, it is likely a named instance. 如果它是SQL Server Express的实例,则可能是命名实例。 So try adding
-S .\\SQLEXPRESS
to the command. 因此,请尝试在命令中添加
-S .\\SQLEXPRESS
。
Also see this blog post for common troubleshooting ideas: http://blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server.aspx 另请参阅此博客文章,以获取常见的故障排除想法: http : //blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open-a-连接到sql-server.aspx
Sounds like you might not have remote connections enabled on the SQL Server you are trying to run this script against. 听起来您可能没有在尝试运行此脚本的SQL Server上启用远程连接。 Take a look at this article:
看一下这篇文章:
http://support.microsoft.com/kb/914277 http://support.microsoft.com/kb/914277
You do not have the Server name parameter specified in there. 您没有在其中指定服务器名称参数。
`osql -U sa iP -i dbattach05.sql`
You might want this 你可能想要这个
`osql -S ServerOrInstanceNameGoesHere -U sa iP -i dbattach05.sql`
如果是Express版本,则可能需要执行以下操作: http : //www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.