Hi,
Is there a way to view the underlying query with SQL Server built-in stored procedures?
For example, I'd like to see the underlying code for "sp_help_job".
Specifically, I'd like to know which table its querying to get the "execution status" of a job. Although the sysjobhistory table has a field that contains the CURRENT execution status of jobs, this table is so big, it takes forever to return... sp_help_job must not be using this table, because it doesn't take nearly as long when I run sp_help_job vs. my own query of the sysjobhistory table.
Anyhow, if I could find the code, the mystery would be solved.
Thanks!!
Is there a way to view the underlying query with SQL Server built-in stored procedures?
For example, I'd like to see the underlying code for "sp_help_job".
Specifically, I'd like to know which table its querying to get the "execution status" of a job. Although the sysjobhistory table has a field that contains the CURRENT execution status of jobs, this table is so big, it takes forever to return... sp_help_job must not be using this table, because it doesn't take nearly as long when I run sp_help_job vs. my own query of the sysjobhistory table.
Anyhow, if I could find the code, the mystery would be solved.
Thanks!!