l.row_id,
t.dex_row_id,
t.SOPNUMBE,
a.USERID
from tempdb.dbo.Dex_Lock l
inner join SOP10100 t
on l.row_id = t.dex_row_id
inner join DYNAMICS.dbo.Activity a
on l.session_id = a.SQLSESID
Michael was kind enough to post this to the Newsgroup in response to a question and he's letting me share it here with the rest of you. I'll add it to the script downloads on the right as well.t.dex_row_id,
t.SOPNUMBE,
a.USERID
from tempdb.dbo.Dex_Lock l
inner join SOP10100 t
on l.row_id = t.dex_row_id
inner join DYNAMICS.dbo.Activity a
on l.session_id = a.SQLSESID
Update: I had the wrong link for Michael's site. It's fixed now. Mea Culpa.