| | |
BCP error on a database with name in two words
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Solved Threads: 0
Sorry i think there is a typo (the " should not be exist) in my earlier post. Pls read below for further info:
This command works perfectly :-
EXEC xp_cmdshell 'bcp History.dbo.InventoryValuation_FP102008 out D:\test.txt -q -T -c'
But, if i renamed the database from "History" to "History Data" and ran this command :-
EXEC xp_cmdshell 'bcp [History Data].dbo.InventoryValuation_FP102008 out D:\test.txt -q -T -c'
It returned this error msg:
Copy direction must be either 'in', 'out' or 'format'.
Thanks!
This command works perfectly :-
EXEC xp_cmdshell 'bcp History.dbo.InventoryValuation_FP102008 out D:\test.txt -q -T -c'
But, if i renamed the database from "History" to "History Data" and ran this command :-
EXEC xp_cmdshell 'bcp [History Data].dbo.InventoryValuation_FP102008 out D:\test.txt -q -T -c'
It returned this error msg:
Copy direction must be either 'in', 'out' or 'format'.
Thanks!
![]() |
Other Threads in the MS SQL Forum
- Previous Thread: how to access a large amount of data in dataset
- Next Thread: Help with sql to select fields with equal values
| Thread Tools | Search this Thread |





