One of our developers created a whole lot of consecutive unwanted spids. I tried this:
declare @i as int
set @i = 101
while (@i <= 300)
begin
set @i = @i + 1
kill @i
end
and found that "kill" does not like the use of @i. How would you do this?
TIA,
barkingdog