---
title: "How to query SQL Server Agent Jobs"
description: "Querying SQL Server Agent Jobs retrieves job setup, execution, and schedule information. The SQL-Toolkit plug-in uses updated queries and a sampler XML file for configuration."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360003243337-geneos-how-to-query-sql-server-agent-jobs/index.html"
---
Based on the SQL Server Job queries from this [link](https://www.mssqltips.com/sqlservertip/2561/querying-sql-server-agent-job-information/) with minor updates to convert some data types, the SQL-Toolkit plug-in can be configured to retrieve Job setup, execution and scheduled information. The sampler xml file is attached at the bottom of the page. Below are examples of these Job dataviews:

![8383732812317 mceclip3](https://docscdn.itrsgroup.com/faq/images/geneos/360003243337-8383732812317-mceclip3.png)

![8383827385757 mceclip5](https://docscdn.itrsgroup.com/faq/images/geneos/360003243337-8383827385757-mceclip5.png)

![8383833692829 mceclip6](https://docscdn.itrsgroup.com/faq/images/geneos/360003243337-8383833692829-mceclip6.png)

![8383847126813 mceclip7](https://docscdn.itrsgroup.com/faq/images/geneos/360003243337-8383847126813-mceclip7.png)

![8383929703069 mceclip8](https://docscdn.itrsgroup.com/faq/images/geneos/360003243337-8383929703069-mceclip8.png)

## Related downloads

- [SQLServer_Agent_Jobs-Sampler.xml](/faq/downloads/geneos/360003243337-360004590198-SQLServer_Agent_Jobs-Sampler.xml)


