SQL Server Agent

External Article

Setting Up Your SQL Server Agent Correctly

  • Article

It is important to set up SQL Server Agent Security on the principles of 'executing with minimum privileges’, and ensure that errors are properly logged and alerts are set up for a comprehensive range of errors. SQL Server Agent allows fine-grained control of every job step that should allow tasks to be run entirely safely even if they occasionally need special privileges.


3,563 reads

Technical Article

Querying SQL Server Agent Job History Data

  • Article

Often times we are tasked with having to programmatically come with a list of durations per SQL Server Agent Job to trend the run times and order the results by date. Unfortunately it's not always easy in the way the data is stored in the system tables in the MSDB database. This tip explains how to use the system tables to get the data into the correct format for dates and job durations.


3,890 reads

External Article

SQL Server Agent Jobs without an Operator

  • Article

I work in a fairly large and unwieldy SQL Server shop. Our environment is the wild west. I have DBAs and Developers on my team that create SQL Server Agent Jobs all of the time and there is never an operator setup to email anyone based on a failure condition. I know the right solution here is to "tame the wild west" by locking down the environment and setting up a change management process, but I think that is a topic for another day. Can you give me some idea of how to identify the new recently created SQL Server Agent Jobs and Jobs without an operator setup to email us for a failure condition? I would like to receive emails when either of these conditions occur. Check out the solution to this tip to learn how.


4,386 reads


Working with Neo4j Imports–I HATE CASE SENSITIVITY


I’ve been working to better understand graph databases and where they can be useful....

Daily Coping 8 Aug 2022


I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Azure DevOps: Deploying Power BI reports with a parameterized gateway-based Data Source


(2022-Aug-08) You have developed your Power BI report, by connecting one or more sourcing datasets,...

Read the latest Blogs


doe it locks my view while checking it ? EXEC sp_refreshview '[View_SCHEMA]'

By RazLinky

i have a cursor that runs on all my views   and then exec...

Transaction log full error 9002 on Alwayon Availability groups

By vsamantha35

Hi All, I am looking for some inputs on how to avoid or prevent...

Retrieve records added across database (all user table) after a specific date

By fafful

I would like a query to retrieve all records that have been added after...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers

Question of the Day


See possible answers