Error messaging while using BCP in SQL Server 2005

Tags:
Bulk Copy Program
SQL Server 2005
SQL Server errors
I am getting this error while using the Bulk Copy Program (version 9.0) in SQL Server 2005: "An error occured while processing the command line". I am using the following command: bcp MyDatabase..temptable in "C:Documents and SettingsRishiOut.txt" -c -r n -SMyServer -UHamp -Ppass123 >>Error.txt Why might this be?

Answer Wiki

Thanks. We'll let you know when a new response is added.

It could be any number of things. You could have an invalid -r value. You may not have permissions to the table.

Setup SQL Profiler and run it against the database while you run the command. Add in all the Error items and see if SQL Profiler gives you any information about the error from the SQL Engine. If it doesn’t then it’s strictly a switch problem on your bcp command it self.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following