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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 job without job history.

Author  Topic 

lioracle
Starting Member

2 Posts

Posted - 2008-06-24 : 06:08:53
hello.
i have job (not maintence plan). when i "right click" + "view history" i didnt see job history
how can i add him "job history"

thanks

steel
Posting Yak Master

107 Posts

Posted - 2008-06-24 : 07:21:41
hello
execute that job first and when it gets executed then check the history.
Go to Top of Page

lioracle
Starting Member

2 Posts

Posted - 2008-06-24 : 08:54:17
i do it and when i click view history
i get message - "no history"
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-06-24 : 10:18:20
quote:
Originally posted by lioracle

i do it and when i click view history
i get message - "no history"




Did you refresh job? Check in jobhistory table in MSDB database.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-06-24 : 23:18:11
Did job ever run?
Go to Top of Page

steel
Posting Yak Master

107 Posts

Posted - 2008-06-25 : 02:06:42
u can check in the sysjobs table:


select name from msdb..sysjobs

and if the job exists then u can check its hsitory as

select a.run_status,a.run_date,a.message,b.name from msdb..sysjobhistory a , msdb..sysjobs b where a.job_id=b.job_id and step_id =0 and
(run_date = convert(varchar,getdate(),112) or run_date =convert(varchar,getdate()-1,112))
Go to Top of Page
   

- Advertisement -