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
An inspection bridge observes a workpiece while separate holding mechanisms remain visible.

SQL SERVER – NOLOCK with DMVs

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

NOLOCK with DMVs is not a blanket reassurance against monitoring waits. A customer asked about omitting the hint.

Read More
Hands tying kindling sticks into bundles with twine beside a handcart stacked with finished bundles

Aggregate Pushdown: Letting the Columnstore Scan Do the Summing

September 13, 2021
Pinal Dave
SQL Performance
ColumnStore Index, Execution Plan, SQL Performance, SQL Server

Verify aggregate pushdown in columnstore scans, inspect locally aggregated rows, and compare numeric aggregates with expressions.

Read More
The uppermost retained restoration folio is examined beside older preserved records.

SQL SERVER – Get Last Restore Date

September 10, 2021
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

I report Restore Date from the latest retained msdb history row. My earlier query returned every matching entry.

Read More
Gouache painting of a bakery board half clean and half crumbs with a vermilion pastry brush

Reclaim Space After Dropping a Column With DBCC CLEANTABLE

September 9, 2021
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server, SQL Server DBCC

To reclaim space after dropping a column, run DBCC CLEANTABLE or rebuild the index. This post measures both on a demo table and shows that CLEANTABLE shrinks the rows while only a rebuild returns the pages.

Read More
A carved wooden master and three matching relief tiles sit beside a screw press in a textured gouache workshop.

SQL SERVER – Easiest Way to Copy All Stored Procedure Definitions

September 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio, SQL Stored Procedure

Object Explorer Details helps copy procedure definitions through SSMS scripting. I select the procedures and review the generated script before execution.

Read More
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
Previous 1 … 12 13 14 15 16 17 18 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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