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 canal lock with a small boat entering between the gates and a vermilion wheel on the far gate

Agent Job After Another Job: Start the Next Job on Success

September 7, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent

To run an Agent job after another job, end the first job with a step that calls sp_start_job for the second. This post builds the pair, reads the steps back from msdb, and explains what the call waits for and what happens when the second job is busy.

Read More
Gouache painting of a vegetable bed behind a picket fence with a vermilion padlock on the gate

Deny Drop Permission for a Table in SQL Server

September 6, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Trigger

To deny drop permission for a table, deny ALTER on its schema, because DENY DELETE only stops row deletes. This post tests both on a demo database and shows what each deny blocks and what it leaves open.

Read More
An inspection lens examines an optional insert while a removal tool remains separate.

SQL SERVER – Checking Column Existence Is Different from DROP IF EXISTS

September 3, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server

I use COL_LENGTH to Check If a Column Exists in visible metadata. Conditional DROP instead performs a deletion.

Read More
Delivery cases and their multiple fastening clips are inspected as different counts.

SQL SERVER – Session Counts by Database Are Not Lock Row Counts

September 2, 2021
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server

Total Sessions and total lock rows answer different questions. My original query counted lock rows under a session label.

Read More
Gouache painting of sailboats inside a harbor wall and a small vermilion rowboat outside it

System Threads Outside Max Worker Threads in SQL Server

August 31, 2021
Pinal Dave
SQL Tips and Tricks
SQL CPU, SQL DMV, SQL Scripts, SQL Server

System threads outside max worker threads run background work that the setting does not limit, as the documentation says. This post counts the background tasks with two read-only queries and explains what that means for sizing the setting.

Read More
Drawer, construction-frame and entrance fittings show three distinct event scopes.

SQL SERVER – Types of Triggers

August 30, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger

The types of triggers in SQL Server include DML, DDL and logon triggers. A customer requested this three-part summary.

Read More
A detached cabinet coupling remains separate from the key for reopening the protected second cabinet.

SQL SERVER – How to Break Mirroring?

August 27, 2021
Pinal Dave
SQL Tips and Tricks
SQL Mirroring, SQL Scripts, SQL Server

SET PARTNER OFF can break mirroring by permanently removing its relationship. I confirm the intended outcome before either command.

Read More
Previous 1 … 25 26 27 28 29 30 31 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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