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
Msg 0, Level 11, State 0, Line 10.

SQL SERVER – Incorrect Error: Unable to Add Filegroup – A Severe Error Occurred on the Current Command

January 31, 2018
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Error Messages, SQL Scripts, SQL Server

A client with a huge partitioned database could not add filegroup and got Msg 0, a severe error. Here is how we found the real, much deeper issue.

Read More
Error dialog of query execution.

SQL SERVER – Puzzle – Strange Behavior With Extra Comma in Create Table Statement

January 30, 2018
Pinal Dave
SQL Puzzle
SQL Command, SQL Scripts, SQL Server, SQL Table Operation

My favorite icebreaker puzzle: a strange behavior with an extra comma in CREATE TABLE statement. Why does SQL Server accept it for temp and regular tables?

Read More
Title card: Msg 217: Nesting Level Exceeded (Limit 32)

SQL SERVER – Nested Triggers – Trigger Calling Another Trigger Error

January 29, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Trigger

A reader asked what happens when one trigger calls another. Here is a simple example with two AFTER INSERT triggers that shows how nested triggers behave.

Read More
A mineral specimen drawer with one sample set aside for individual inspection

How to Drop All the User Created Statistics by SQL Server? – Interview Question of the Week #158

January 28, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Performance, SQL Scripts, SQL Server, SQL Statistics

SQL Server creates statistics on its own, but DBAs and the Tuning Advisor add more. Here is a script to drop all user Created Statistics safely.

Read More
Gouache painting of a courtyard of leaf-covered squares with one swept clean and a vermilion-handled broom

Clear Procedure Cache for One Database in SQL Server

January 27, 2018
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Scripts, SQL Server, SQL Stored Procedure

To clear procedure cache for one database, run ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE inside that database. This post tests it on two demo databases, shows that the other database keeps its plans, and shows how to remove a single plan by its plan handle. It also covers the cost and the lighter alternatives.

Read More
Displaying data in SQL Server Management Studio.

SQL SERVER – Simple Script to Match Session ID to OS Thread ID

January 26, 2018
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, Windows

How is a SQL Server Session ID mapped to an OS Thread ID? Here is a simple script to match Session ID to OS Thread ID, with the scheduler and task state.

Read More
Gouache illustration of Authentication in SQL Server: an entrance key opens an outer door while an inner cabinet keeps a separate lock.

SQL SERVER – Authentication in SQL Server (Windows and Mixed Mode) – GDPR Series

January 25, 2018
Pinal Dave
SQL Tips and Tricks
SQL Compliance, SQL Login, SQL Server, SQL Server Security

Authentication in SQL Server identifies the caller through supported identity choices. My GDPR series considered those choices alongside access controls.

Read More
Previous 1 … 137 138 139 140 141 142 143 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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