Hi.
I need to delete many rows from sql server 2008 database, it must be scalable so i was thinking about bulk delete, the problem is that the are not many references on this, at least in my case.
The first factor is that i will exactly know the ID of every row to delete, so any tips with TOP are not an option, also i will delete less rows that i want to retain so there will be no need for some "drop/temp table/re-create" methods.
So i was thinking to use WHERE IN , either suppling IDs or xml data with IDs, there is also an option to use MERGE to delete rows.
If i will have to delete 1000+ rows, sending all ids to WHERE IN could be a problem ? And what with MERGE - it is really a cure for all bulk insert/update/delete problems ? What to choose ?