views:

95

answers:

1

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