Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sysjobhistory.run_time issue

Status
Not open for further replies.

k108

Programmer
Jul 20, 2005
230
US
The sysjobhistory table has a column called run_time, which is the time that a job started to run.

It is an INT column. Times are stored as 5 or 6 digits, usually, which is correct. Such as 20530 or 2:05 am and 30 seconds.

However, sometimes the times show up as less than 5 digits:

3001 or 1, for example. What does this mean?? This is a problem b/c this makes the timestamp less than consistent.

 
Tis what I think,
3001 --> 00:30:01
1 --> 00:00:01

Since the datatype is int it strips off the leading 0's.

Regards,
AA
 
So, you think that these are valid timestamps? I see what you're saying.

Is it possible for SQL Server to make an error, tho?

However, I do see a pattern here, as there are bunches of 3001 in the run times, so there's probably a job running at
12:30 am and 01 seconds.
 
From what I see, it seems perfectly valid. However, you should test run a job around 12:30:01 and see what you get.

That would be a good test to make sure you assumptions are right.

Regards,
AA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top