Before using SqlBulkCopy, truncate.

.net sql sqlbulkcopy

Question

I want to truncate a table before doing a SqlBulkCopy. Does SqlBulkCopy automatically truncate a table before copying the data?

1
3
8/7/2009 9:00:41 PM

Popular Answer

No, not to my knowledge.

I don't see any options on the SqlBulkCopy class that would allow you to instruct SqlBulkCopy to truncate before loading.

You'll have to do that yourself before launching SqlBulkCopy.

6
8/7/2009 9:07:20 PM


Related Questions





Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow