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
Gouache painting of a row of garden plots each with its own tool leaning beside it, one rake vermilion

List All Jobs With Owners in SQL Server Agent

January 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Agent, SQL Server Security

To list all jobs with owners, read the job table in msdb and resolve each owner with a join that keeps jobs without a login. This post builds four demo jobs, shows how a common query hides one of them, and reassigns jobs safely. It ends with a cleanup script.

Read More
Gouache painting of a wooden music box with a long vermilion perforated paper strip curling down to the floor

Additional Logging for SQL Server Agent: Three Methods

January 28, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Log, SQL Scripts, SQL Server Agent

Additional logging for SQL Server Agent means raising the Agent error log level, so the Agent writes more lines about its own work. This post reads the current level, changes it with T-SQL and restores it in the same script, and shows the Management Studio and registry routes.

Read More
A rack of lake water samples at dawn, one cloudy tube marked with a red clip.

Capturing sp_WhoIsActive Snapshots to a Table Every Minute

January 24, 2020
Pinal Dave
SQL Tips and Tricks
DBA, SQL Monitoring, SQL Server, SQL Server Agent

Capture sp_WhoIsActive snapshots every minute, keep seven days, and query past blockers and long requests from a logging table.

Read More
Gouache painting of a wooden xylophone with cream bars and one vermilion bar in the middle

Agent Service Missing in Configuration Manager: The Fix

January 18, 2020
Pinal Dave
SQL Tips and Tricks
Registry, SQL Error Messages, SQL Server Agent, SQL Server Services

An Agent service missing in Configuration Manager can come from a wrong program path. This post compares the service lists, reads the Agent path with T-SQL, checks that the file exists, and explains how to repair the path.

Read More
Title card: Event ID 7000: The System Cannot Find the File Specified

SQL SERVER – Event ID 7000 – The System Cannot Find the File Specified

January 16, 2020
Pinal Dave
SQL Tips and Tricks
Computer Network, Registry, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Agent

This blog is from one that came from a DBA from one of my consulting engagements. Let us learn how to fix event id 7000 error.

Read More
Title card: Log Shipping Error: Only Members of sysadmin Role

SQL SERVER – Log Shipping Error: Only Members of the Sysadmin Fixed Server Role Can Perform this Operation – 2

January 9, 2020
Pinal Dave
SQL Tips and Tricks
Log Shipping, SQL Error Messages, SQL Scripts, SQL Server, SQL Server Agent, SQL Server Security

Many disaster recovery solutions are available in SQL Server. Let’s learn how we can fix a specific log shipping error about the sysadmin fixed server role. 

Read More
A signalman's hand passing a brass single-line token in a hoop to a train driver's gloved hand.

Application Locks With sp_getapplock: One Job at a Time

November 15, 2019
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Server, SQL Server Agent, SQL Stored Procedure, SQL Transactions

Use sp_getapplock to serialize a job, compare transaction and session ownership, handle return codes, and inspect a two-session test.

Read More
Previous 1 2 3 4 5 6 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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