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(*)
Just do this:
SET NOCOUNT off ; SELECT @p1 = @@ROWCOUNT
where p1 is the output parameter you set in the stored procedure. Hope it helps.