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 herbarium studio shows two separate oak cabinets storing different arrangements of the same botanical specimens.

Indexed View Quiz: The Table and Clustered Index Confusion

October 7, 2010
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Server, SQL View

An indexed view and its base table can each own a clustered index because they are separate objects. Inspect both owners in a SQL example and see why a view index does not give its base table a second clustered index.

Read More
Database Properties Window.

SQL SERVER – Quickest Way to Identify Blocking Query and Resolution – Dirty Solution

October 6, 2010
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts

A friend could not delete, truncate or drop a table at 11 PM because of open transactions. Here is my quick and dirty way to identify blocking query.

Read More
SQL SERVER - Error : Fix : Msg 5133, Level 16, State 1, Line 2 Directory lookup for the file failed with the operating system error 2(The system cannot find the file specified.)

SQL SERVER – Error : Fix : Msg 5133, Level 16, State 1, Line 2 Directory lookup for the file failed with the operating system error 2(The system cannot find the file specified.)

October 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Msg 5133 says directory lookup for the file failed with operating system error 2. A friend hit it on CREATE DATABASE, and here is what caused it.

Read More
Two counters showing activity between day and night

SQL SERVER – Find Total Number of Transactions on Interval

October 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL System Table

How many Transactions run on your server per minute? A handy script reads sys.dm_os_performance_counters twice with a WAITFOR DELAY between the reads.

Read More
Best Practices

SQL SERVER – The Limitations of the Views – Eleven and more…

October 3, 2010
Pinal Dave
SQL Tips and Tricks
SQL Server

I had earlier written, interesting article series on the limitations of the views. I had a great time writing this series. I got many many requests.

Read More
A wooden loom, a reusable shuttle, wound wool and an ordered thread comb.

NO_PERFORMANCE_SPOOL: Compare the Work Before Keeping the Hint

October 2, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server 2016

NO_PERFORMANCE_SPOOL changes one query optimization decision. A guarded private fixture compares baseline work, the optional hint and a supporting inner index. The article explains how to preserve results and assess actual child work without promising a plan shape.

Read More
Results window in query analyzer.

SQL SERVER – Get Query Running in Session

October 1, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table, SQL Utility

I forgot the simple syntax to get query running in session and ended up on my own old post. Here is the one method I use most during performance tuning.

Read More
Several plain cardboard boxes nest inside each other on a softly lit wooden tabletop.

What a Cumulative Update Actually Contains

September 30, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation

Understand a SQL Server cumulative update, identify your build and servicing branch, and read fixes and known issues before planning a patch.

Read More
The parts of a taken-apart carburetor laid out in neat rows on a cloth on a workbench, a hand placing the last piece

Shredding sp_server_diagnostics Output Into Health Rows

September 30, 2010
Pinal Dave
SQL Tips and Tricks
Comprehensive Database Performance Health Check, Output Clause, SQL Server

Check shredding sp_server_diagnostics with SQL Server examples, practical queries, clear limits, and steps to verify your own database.

Read More
SQL SERVER - View Over the View Not Possible with Index View - Limitations of the View 11

SQL SERVER – View Over the View Not Possible with Index View – Limitations of the View 11

September 29, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL View

Why can’t you create a view over the view and index it? An index view cannot reference another view. Limitation of the view 11 shows an example.

Read More
Previous 1 … 441 442 443 444 445 446 447 … 593 Next
  • Books
  • Testimonials
  • Privacy Policy

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