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 row of identical lifebuoy rings hung on posts along a wooden harbor pier, the nearest one vermilion.

An Error Handling Template for Stored Procedures With THROW

June 11, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions

Build an error handling template with XACT_ABORT, XACT_STATE, durable error logging, and THROW, then test a forced procedure failure.

Read More
Dbo' table in database.

SQL SERVER – Finding Size of a Columnstore Index Using DMVs

June 10, 2012
Pinal Dave
SQL Tips and Tricks
ColumnStore Index, SQL Index

This script uses sys.indexes and sys.dm_db_partition_stats to list the size of a columnstore index on disk, along with its table name.

Read More
SQL SERVER - Service Broker and CAP_CPU_PERCENT - Limiting SQL Server Instances to CPU Usage

SQL SERVER – Service Broker and CAP_CPU_PERCENT – Limiting SQL Server Instances to CPU Usage

June 9, 2012
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Scripts

Jeff said my Resource Governor script did not limit CPU at all. After a few emails we found why, and how CAP_CPU_PERCENT really limits CPU usage.

Read More
SQL SERVER - A Puzzle - Swap Value of Column Without Case Statement

SQL SERVER – A Puzzle – Swap Value of Column Without Case Statement

June 8, 2012
Pinal Dave
SQL Puzzle

An interview puzzle: write one UPDATE that flips male to female and female to male. Can you swap value of column data without a CASE statement?

Read More
A croquet mallet rests beside identical balls on the same flat strip of lawn

A Repeatable Workload: Testing a Tuning Change Fairly

June 7, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Monitoring, SQL Performance, Testing

One quick run can fool you. Here is a small, fixed test you can rerun before and after any index.

Read More
Gouache painting of a small red-tabbed group of cards separated from a larger file drawer by a brass guide.

Replace SELECT * with Column Names in SQL Server: SQL in Sixty Seconds #017

June 6, 2012
Pinal Dave
SQL Video
SQL Coding Standards, SQL Column, SQL in Sixty Seconds, SQL Server Management Studio, SQL View

Replace SELECT * with the columns your application needs. The tests here show a query that read 4 pages instead of 64, a view that missed a new column, and two errors that appear when a table changes, all on SQL Server 2025.

Read More
SQL SERVER - Fix: Error: 10920 Cannot drop user-defined function. It is being used as a resource governor classifier

SQL SERVER – Fix: Error: 10920 Cannot drop user-defined function. It is being used as a resource governor classifier

June 5, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Error 10920 stops you from dropping a user-defined function that is still the Resource Governor classifier. Here is why, and how to clean it up.

Read More
Previous 1 … 534 535 536 537 538 539 540 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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