How to prevent duplicate records being inserted with SqlBulkCopy?

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-05-24T07:13:28Z Indexed on 2010/05/24 7:21 UTC
Read the original article Hit count: 306

I am inserting a datatable via sqlbulkcopy to a sql server Table.... Consider that if am inserting the same datatable next time the same set of rows are added... How to avoid duplicates in such scenario? Any suggestion....

© Stack Overflow or respective owner

Related posts about c#

Related posts about sql-server-2005