This should to the trick:
select @@rowcount
Just make sure you do it as the VERY NEXT statement... @@rowcount gets set after every SQL statement that returns results.
You can also set a local variable equal to the results:
declare @myVar int
select @myVar = @@rowcount
Hope this helps.
BitBlt
Practically a Posting Shark
894 posts since Feb 2011
Reputation Points: 482
Solved Threads: 148
Skill Endorsements: 14