I know you can do bulk XML inserts into SQL Server 2005 tables from your C# code using datasets/datatables. Is it possible to do the same but as a delete?
+1
A:
You can remove data two ways
DELETE FROM Schema.TableName WHERE Condition = Value
OR nuke it
TRUNCATE TABLE Schema.TableName
Now, if you want to Bulk Delete rows based on an XML file, you are going to have to import the data into a staging table or open it as a rowset and then do a JOIN
or EXISTS
to delete.
Raj More
2010-04-06 18:37:42