In SQL Server 2005, is there a way of deleting rows and being told how many were actually deleted?
I could do a select count(*) with the s
select count(*)
Create temp table with one column, id.
Insert into temp table selecting the ids you want to delete. That gives you your count.
Delete from your table where id in (select id from temp table)