Add SQL Server Agent jobs to Microsoft Excel spreadsheet

1137480 pts.
Tags:
Microsoft Excel
SQL Server
T-SQL
I have a list of SQL Server Agent jobs and I need to add them to my Excel spreadsheet. The problem is that I don't want to do this manually. Is there a T-SQL command that would create this list for me?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

check out this link that answers this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • danieljones
    Try this to export SQL Server Agent jobs with steps and scripts to Microsoft excel spreadsheet 

    USE [msdb]
    GO
    SELECT 
        j.Name 
        , j.[Description] 
        , js.Step_ID 
        , js.Step_Name
        , js.Database_Name 
        , js.Command 
        --, j.*, js.* 
    FROM dbo.sysjobs j
    INNER JOIN dbo.sysjobsteps js
        ON js.job_id = j.job_id 
    --WHERE j.enabled = 1
    ORDER BY j.name, js.Step_ID 

    2,840 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: