Viewing 3 posts - 1 through 3 (of 3 total)
A simple way to do this:
update #Table1
set #Table1.SID = #Table2.aID
from #Table2
where #Table1.Sno = #Table2.Sno ;
March 12, 2013 at 3:15 pm
#1596292
DISTINCT(sj.name)
That doesn't return unique names, distinct returns unique rows:
DISTINCT
Specifies that only unique rows can appear in the result set. Null values are considered equal for the purposes of the DISTINCT...
March 12, 2013 at 3:03 pm
#1596285
I believe the records you see when you "View History" of a job are in msdb.dbo.sysjobhistory.
March 12, 2013 at 10:25 am
#1596127