crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Write a query to get jobs working in SQL Server Database?
Question Posted on 17 May 2022Home >> DataBase >> SQL Query >> Write a query to get jobs working in SQL Server Database?

Write a query to get jobs working in SQL Server Database?
Below are the two query which helps you to get all the jobs working in SQL Server:-

(1)SELECT jss.jobname, jss.step_name, p.name FROM sys.procedures p

CROSS apply
(
SELECT j.name AS jobname, js.step_name FROM msdb.dbo.sysjobsteps js
INNER JOIN msdb.dbo.sysjobs j ON js.job_id=j.job_id
WHERE js.command LIKE '%'+p.name+'%'
) jss


(2)SELECT s.step_id, j.[name], s.database_name, s.command
FROM msdb.dbo.sysjobsteps AS s
INNER JOIN msdb.dbo.sysjobs AS j ON s.job_id = j.job_id
WHERE s.command LIKE '%ProcAdsDetailQsn%'
SQL Server Database,get jobs working in SQL,SQL Query,SQL Query jobs
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

How to get the table count in last used query from cache by sending tablename?

Write a SQL query to print 1 to 100 in sql server?

Sql Interview Latest Query questions asked on 30 dec 2020

nth highest number from table

some good sql query






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap