Viewing 2 posts - 1 through 2 (of 2 total)
This anwer works for the given data but wouldn't work if we inserted a row like:
insert into #new(id,keyvalue) values (1,'bb')
The stated answer assumes a duplicate is defined by the ID...
May 13, 2008 at 10:07 am
#814640
per the comments in the msdb.dbo.sp_get_composite_job_info sp the state values are defined as follows:
0 = Not idle or suspended,
1 = Executing,
2 = Waiting For Thread,
3 = Between...
October 17, 2007 at 12:45 pm
#742855