本文介绍了批量复制给我错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我的bcp给我回了一条错误消息
sqlstatement:
BCP Edu.dbo.lam输出c:\ lam.txt -c-S(SHABAN-PC \ SQLEXPRESS2005)美国Pasdf

错误消息是消息102,级别15,状态1,第1行
''.''.附近的语法不正确
希望获得帮助
感谢

hello,
my bcp gives me back a error message
sqlstatement:
BCP Edu.dbo.lam out c:\lam.txt -c-S(SHABAN-PC\SQLEXPRESS2005) Usa Pasdf

the error message is "Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ''.''."
hope to get help
thanks

推荐答案

注意:

在系统上安装Microsoft SQL Server工具时,即会安装bcp 9.0客户端.如果同时安装了SQL Server 2005和SQL Server 2000工具,则取决于PATH环境变量的值,则可能使用的是较早的bcp客户端,而不是bcp 9.0客户端.此环境变量定义Windows用于搜索可执行文件的目录集.要发现您正在使用哪个版本,请在Windows命令提示符处运行bcp/v命令.有关如何在PATH环境变量中设置命令路径的信息,请参见Windows帮助.
(...)
有关在何处查找或如何运行bcp实用程序以及命令提示符实用程序语法约定的信息,请参见 [ ^ ].

The bcp 9.0 client is installed when you install Microsoft SQL Server tools on your system. If both SQL Server 2005 and SQL Server 2000 tools are installed, depending on the value of the PATH environment variable, you might be using the earlier bcp client instead of the bcp 9.0 client. This environment variable defines the set of directories used by Windows to search for executable files. To discover which version you are using, run the bcp /v command at the Windows Command Prompt. For information about how to set the command path in the PATH environment variable, see Windows Help.
(...)
For information about where to find or how to run the bcp utility and about the command prompt utilities syntax conventions, see Command Prompt Utilities[^].



有关bcp实用程序的更多信息,请参见: http://msdn.microsoft.com/zh-cn/library/ms162802%28v = sql.90%29.aspx [ ^ ]

相似的问题: http://www.dotnetfunda.com/interview/exam2399-can-we-execute-bcp-command-direct-in-the-sql-server-managemen.aspx [ ^ ]



More about bcp utility here: http://msdn.microsoft.com/en-us/library/ms162802%28v=sql.90%29.aspx[^]

Similar question: http://www.dotnetfunda.com/interview/exam2399-can-we-execute-bcp-command-directly-in-the-sql-server-managemen.aspx[^]


这篇关于批量复制给我错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 07:29