Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Viewing all articles
Browse latest Browse all 989

Tracking and Counting SQL Server Agent #Job Runs

$
0
0
Sql_message_id and sql_severity provide information about the ... with a success status select sysjobhistory.job_id ,count(*) number_of_success_runs ,sum ( SUBSTRING(RIGHT(REPLICATE('0', 6) + CAST(run_duration as varchar(6)), 6),5,2) +(SUBSTRING(RIGHT ...

Viewing all articles
Browse latest Browse all 989

Trending Articles