This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
A router bearing follows a curved wooden guide while a spare bit lacks a guide

Agent Tokens in Job Steps: Job Name, Step and Start Time

February 9, 2014
Pinal Dave
SQL Tips and Tricks
SQL Monitoring, SQL Server Agent, SQL String

A copied job should log its own name, not the old one. Agent tokens do that, if you escape them the right way.

Read More
Two fabric pouches and their zipper pulls preserve different open and closed positions

Disabling All Agent Jobs During a Freeze and Restoring Their State

January 4, 2014
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server Agent

Enable-all after a freeze wakes up jobs that were off on purpose. Save the starting state and put back exactly that.

Read More
An unbuckled spare girth lies beside a saddle awaiting a replacement strap

Recovering a Deleted Agent Job From an msdb Backup

December 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server Agent, System Database

Someone deleted the wrong Agent job. Here is how to get it back from an msdb backup without touching the live msdb.

Read More
An open henhouse hatch with a simple linkage beside a closed plain shutter

Scheduling an Agent Job for Weekday Office Hours Only

December 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Monitoring, SQL Server Agent

Stop a monitoring job from waking anyone at 3 AM. Build the schedule, decode the weekday mask, and see what the window does not cover.

Read More
A brass bell ringing above a shop door as it opens, a tally counter beside it

Change Data Capture or Change Tracking

July 18, 2013
Pinal Dave
SQL Tips and Tricks
Change Data Capture, ETL, SQL Server, SQL Server Agent, Transaction Log

Change data capture or change tracking serves different sync needs; compare captured detail, retention, cleanup, and operating cost before choosing.

Read More
Two glued boards held in red clamps on a workbench while the next board waits.

Waiting for an Agent Job to Finish Before the Next Step Runs

February 9, 2013
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

Wait for an Agent job to finish by polling its current sysjobactivity row, enforcing a timeout, and checking sysjobhistory outcome.

Read More
A ringing brass alarm clock on a bedside table beside a neatly made, empty bed and untouched slippers.

SQL Server Agent Basics

December 10, 2012
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

SQL Server Agent basics covers jobs, steps, schedules, proxies, and history so a first useful job runs with a clear owner and failure path.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com