Skip to content

Instantly share code, notes, and snippets.

@dreadjr
Created May 25, 2012 22:14
Show Gist options
  • Save dreadjr/2790882 to your computer and use it in GitHub Desktop.
Save dreadjr/2790882 to your computer and use it in GitHub Desktop.
tfs incremental analysis database sync job
-- 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