I've got an extensive selection of these to add to a spreadsheet and don't want to go through by hand. What it the T-SQL command(s) to generate a list of SQL Server Agent Jobs?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
On each server, you can query the sysjobs table in the msdb. For instance:
|
|||
|
|
|
-- List of all the jobs currently running on server
|
||||
|
|
|
This may be what you are looking for View (and Disable) SQL Agent Jobs with TSQL |
|||
|
|
My boss actually sorted out what I was after - this gave me the list I was after. USE msdb SELECT name FROM sysjobs |
|||
|
|
|
Here is my contribution - also gets the category name and filters out the report server jobs.
|
|||
|
|
protected by splattne♦ May 31 '11 at 13:10
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.