Viewing 4 posts - 1 through 4 (of 4 total)
Show's the run status of each sql agent job's last 5 executions..
USE MSDB
DECLARE @PrevRuns TINYINT
SET @PrevRuns = 5
SELECT
Name
, Description
, message
, run_status
, RunDateTime
FROM (
SELECT
j.Name
, j.Description
, h.message
, h.run_status
, msdb.dbo.agent_datetime(run_date, run_time) as...
December 6, 2013 at 8:01 am
The only way I can think how to do this is to build the top 10 query into the model - add another copy of the table in Data Source...
November 14, 2007 at 8:11 am
I'd have to pick ( a second nod to Nick Cave here )..
Brainiac - Hissing Prigs in Static Couture
Roky Erickson - I Have Always Been Here Before (Anthology)
Velvet Underground -...
February 9, 2007 at 8:49 am
If you're on 2005, you could move both databases into one and separate the tables with schemas, and then use foreign keys for integrity. You could do the same with...
March 22, 2006 at 7:55 am
Viewing 4 posts - 1 through 4 (of 4 total)