sa24
SSCrazy Eights
Points: 8027
More actions
October 24, 2002 at 12:44 pm
#79248
I think that this is not a smart question. But can someone help me to know the jobid of a job from within a job which is executing.
Andy Warren
SSC Guru
Points: 119902
October 24, 2002 at 6:40 pm
#439415
Not a dumb question. Dont see a simple way. Probably could use the spid to query sysprocesses, use that to look up in sysjobs.
Andy
http://www.sqlservercentral.com/columnists/awarren/
AndySQLAndy - My Blog!Connect with me on LinkedInFollow me on Twitter
akshay1974
SSC-Addicted
Points: 444
October 24, 2002 at 9:57 pm
#439425
Thanks Andy. I thought there would had been an easy way out. But thanks for the help.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply