July 14, 2014 at 1:00 am
hi guys,
Is there an option in bcp utility to truncate the table first or overwrite its contents before exporting?
Thanks
July 14, 2014 at 1:03 am
If you export, how can you overwrite a table?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 14, 2014 at 2:16 am
sorry, what I meant was.. to truncate the destination table first.
Is there a parameter I can use in bcp to truncate or format the destination table before inserting the data?
Thanks
July 14, 2014 at 2:27 am
No, there is no such parameter.
You would need to execute a TRUNCATE TABLE first before you call bcp.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 14, 2014 at 2:32 am
Thank you! 🙂
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply