Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)

  • RE: Getting end time from sysjobhistory

    When run_duration exceeded 100 hours than LEN(run_duration)>6..

    The end time could be counted like this:

    DATEADD(second,

    [run_duration]/10000*3600+[run_duration]%10000/100*60+[run_duration]%100,

    STR(run_date,8)+' '+STUFF(STUFF(RIGHT(1000000+run_time,6),5,0,':'),3,0,':'))

  • RE: Getting end time from sysjobhistory

    I don't know the way to get end time,

    but I think, the simpliest way to get starting datetime from sysjobhistory is:

    STR(run_date,8)+' '+STUFF(STUFF(RIGHT(1000000+run_time,6),5,0,':'),3,0,':')

    or

    CONVERT(DATETIME,STR(run_date,8)+' '+STUFF(STUFF(RIGHT(1000000+run_time,6),5,0,':'),3,0,':'))

    .

  • RE: Restore Date

    You are querying msdb database, but what if it was restored manually.

    Not by SQL agent job.

    Piotr

  • RE: VSS service and SQl 2000

    I think, this topic is about backing up databases (database files) with Volume Shadow Copy and SQL 2000 support, so why to talk about Visual SourceSafe ?

Viewing 4 posts - 1 through 4 (of 4 total)