Created
May 25, 2012 22:14
-
-
Save dreadjr/2790882 to your computer and use it in GitHub Desktop.
tfs incremental analysis database sync job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Find the job schedule | |
SELECT | |
JobName | |
,ScheduledTime | |
,Interval | |
FROM tbl_JobDefinition jd | |
INNER JOIN tbl_JobSchedule js ON jd.JobId = js.JobId | |
WHERE | |
JobName = 'Incremental Analysis Database Sync' | |
-- Find the next job in the queue | |
SELECT | |
* | |
FROM tbl_JobQueue jq | |
INNER JOIN tbl_JobDefinition js ON jq.JobId = js.JobId | |
WHERE | |
JobName = 'Incremental Analysis Database Sync' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment