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 ice cream spade lifts one portion from a full tub beside an empty tub

EXISTS vs COUNT: The Right Way to Check If Rows Exist

December 15, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Need a yes or no? Ask EXISTS. Need a number? Ask COUNT. Here is a small demo that shows why mixing them up can quietly give the wrong answer.

Read More
SQL SERVER - Explain Error:166 : does not allow specifying the database name as a prefix to the object name - Puzzle to Win SQL Server Interview Questions and Answers Book

SQL SERVER – Explain Error:166 : does not allow specifying the database name as a prefix to the object name – Puzzle to Win SQL Server Interview Questions and Answers Book

December 14, 2011
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server

Why does DROP PROCEDURE with the database name as a prefix give Error 166 when DROP TABLE works? Explain it and win my SQL Server Interview Questions and Answers book.

Read More
SQL SERVER - A Quick Look at Performance - A Quick Look at Configuration

SQL SERVER – A Quick Look at Performance – A Quick Look at Configuration

December 13, 2011
Pinal Dave
SQL Performance
SQL Scripts

Before I answer a performance question, I need to know the environment. Here is how I take a quick look at configuration to get the full picture fast.

Read More
A ring compressor encloses one piston while another piston remains outside its boundary

Foreign Keys Across Databases: What to Use Instead

December 12, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

SQL Server will not create a foreign key to another database. Here is the real error, why a report is only detection, and a same-database option that enforces.

Read More
SQL SERVER - Fix: Error: Msg 1904, Level 16 The statistics on table has 33 column names in statistics key list. The maximum limit for index or statistics key column list is 32

SQL SERVER – Fix: Error: Msg 1904, Level 16 The statistics on table has 33 column names in statistics key list. The maximum limit for index or statistics key column list is 32

December 11, 2011
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Statistics

Statistics can use up to 32 columns, while an index key is limited to 16. Here is Msg 1904 with a quick demo of 33 versus 32 columns.

Read More
An empty basket rack at a shop door, every basket out on the floor, one red basket unused

Diagnosing Connection Pool Exhaustion From the SQL Server Side

December 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Server, SQL Transactions

Diagnose connection pool exhaustion by grouping SQL Server sessions, finding sleeping open transactions, and reading their last command.

Read More
A nutmeg grater beside a sound nutmeg and a cracked empty shell

Error 3241 on Restore: Newer Version or Damaged Backup File

December 10, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Error 3241 only says SQL Server could not read the file as a backup. Here are three broken files, three different messages, and the checks to run first.

Read More
Previous 1 … 557 558 559 560 561 562 563 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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