Hello!
I am not a geek in writing t-sql code so I am seeking forum help in completion of my task.
I have a trigger which fires upon a action and with in that code, I am starting a job via t-sql like
EXEC msdb.dbo.sp_start_job N'JobName';
Now, I want to check the condition like that, If the trigger got invoked while the job is running, it should wait till the successfully completion of the job.
Thanks for your time and help on this.