AXISHK
asked on
List all SQL Schedule job in SQL Server
How to list all all schedule SQL Jobs that called up a particular stored procedure or update a table in SQL Server 2008R2 ?
Tks
Tks
ASKER
The SQL schedule job will can either schedule a SQL proc or put a statement on it. How can I list the SQL procedure that contain the name of SQL proc or table. Tks
The sp_help_job will give you the command used by the job, so you can use Phil's solution for that.
ASKER
exec sp_help_job where @job_name = 'AutoFormData'
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'where'.
Any idea ??
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'where'.
Any idea ??
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The query need to specify the SQL Job Name. But in case I have a table (or a name of the procedure) but I want to know which SQL job has referred to it. How can I do this ?
Tks
Tks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Variations of sp_help_job may work for you.
Can you clarify that you want to list the SQL Jobs that invoke a given stored procedure? I'm not sure about the "update a table" portion of your request. Do you want to know the tables that a given stored procedure updates too?
What do you know about the stored procedures? (e.g., name only?)