Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2011-10-27 : 09:24:27
|
| Hi,I am executing a job by using SQL.How can I find out when the job has started and completed?Is there a table to refer to to see when the job has ended or something similar?Thanks |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-10-27 : 09:27:21
|
| Add a dummy step as the first step then you can use sys job step history table in msdb.==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2011-10-28 : 06:19:58
|
quote: Originally posted by arkiboys
quote: Originally posted by nigelrivett Add a dummy step as the first step then you can use sys job step history table in msdb.==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy.
Run_Status seems to show if the job was a success or not. What if I want to see if a job is still running?Thanks
|
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-10-28 : 06:33:33
|
| you can look into job activity monitor for that------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
arkiboys
Master Smack Fu Yak Hacker
1433 Posts |
Posted - 2011-10-28 : 09:42:23
|
| Thanks |
 |
|
|
|
|
|