Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy Direction Must be in, out or format

Status
Not open for further replies.

Dhyerwolf

Programmer
Feb 12, 2015
2
US
I wrote a program in early 2010 that ran a command line function that pulled data from SQL Server 2005. The program worked at the time, but does not seem to work now (for various reasons, it was not used for about a 1 year).

BCP "EXEC emdb..Patch2" QUERYOUT D:\shares\patch2.txt -S GEN-SERVER\EMMSDE -t "~" -c

The error message says "Copy direction must be in, out or format." I'm trying to figure out what I need to change to make this work; Please note that I don't actually have any programming background (it was extensive research into books that my boss no longer has). Thanks,
 
Dhyerwolf, (Programmer)

"...I don't actually have any programming background..."

Which statement is true?
 
I'm a "programmer" on this site because I have to pick a category and "befuddled" wasn't an option. I've never taken a programming class and have very minimal self taught knowledge that I haven't put to use for half a decade.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top