Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 62069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:25:05+00:00 2026-05-10T18:25:05+00:00

I have a Stored procedure which schedules a job. This Job takes a lot

  • 0

I have a Stored procedure which schedules a job. This Job takes a lot of time to get completed (approx 30 to 40 min). I need to get to know the status of this Job. Below details would help me

1) How to see the list of all jobs that have got scheduled for a future time and are yet to start

2) How to see the the list of jobs running and the time span from when they are running

3) How to see if the job has completed successfully or has stoped in between because of any error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:25:06+00:00Added an answer on May 10, 2026 at 6:25 pm

    You could try using the system stored procedure sp_help_job. This returns information on the job, its steps, schedules and servers. For example

    EXEC msdb.dbo.sp_help_job @Job_name = 'Your Job Name' 

    SQL Books Online should contain lots of information about the records it returns.

    For returning information on multiple jobs, you could try querying the following system tables which hold the various bits of information on the job

    • msdb.dbo.SysJobActivity (thanks to @kenny-evitt)
    • msdb.dbo.SysJobs
    • msdb.dbo.SysJobSteps
    • msdb.dbo.SysJobSchedules
    • msdb.dbo.SysJobServers
    • msdb.dbo.SysJobHistory

    Their names are fairly self-explanatory (apart from SysJobServers which hold information on when the job last run and the outcome).

    Again, information on the fields can be found at MSDN. For example, check out the page for SysJobs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer One way to find these things out is to use… May 11, 2026 at 10:14 am
  • added an answer Do a SELECT with a GROUP BY clause. Let's say… May 11, 2026 at 10:14 am
  • added an answer I don't know of any reason you couldn't do this.… May 11, 2026 at 10:14 am

Related Questions

I have a Stored procedure which schedules a job. This Job takes a lot
I have a Stored Procedure called spGetOrders which accepts a few parameters: @startdate and
I have a problem with an application which uses the same stored procedure over
I have a stored procedure in SQL 2005. The Stored Procedure is actually creating
I have a stored procedure that consists of a single select query used to
I have a stored procedure with the following header: FUNCTION SaveShipment (p_user_id IN INTEGER,
I have a stored procedure that returns multiple tables. How can I execute and
I have a stored procedure that looks like: CREATE PROCEDURE dbo.usp_TestFilter @AdditionalFilter BIT =
I have a Stored Procedure that rolls-back a series of operations. I want to
I have a stored procedure currently executing a complicated fetch that is frequently timing

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.