We have system tables in SQL Server such as sysjobs
, syscomments
, sysobjects
.
I need to find list of SQL Server jobs running in SQL Server agent using a specific stored procedure.
Such like ..
select *
from sysobjects
where name = 'sp_mystoredprocedure'
I need to find which SQL Server jobs are using the stored procedure which I am passing as an input parameter.