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
Gouache painting: in a stone laundry room, two zinc washtubs stand side by side on a low bench

datetime2 Precision: Rounding Can Cross Midnight

October 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL DateTime, SQL Scripts

datetime2 precision changes can round into the next second or date. Compare typed seven-digit values with millisecond and whole-second conversions.

Read More
SQL Server query execution plan.

SQL SERVER – Indexed View always Use Index on Table

October 12, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL View

A table can have only one clustered index, but what about an indexed view built on the whole table? My T-SQL Tuesday post tests which index SQL Server uses.

Read More
SQL SERVER - Encrypted Stored Procedure and Activity Monitor

SQL SERVER – Encrypted Stored Procedure and Activity Monitor

October 10, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure

Can you see the definition of an encrypted stored procedure in Activity Monitor? The answer is No. Here is a quick test that proves it.

Read More
Table Scan Execution Plan.

SQL SERVER – Simple Explanation of Data Type Precedence

October 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts

A simple explanation of data type precedence: filter an INT and a VARCHAR column with N’1′ and N’First’, then see what the execution plan shows.

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
Arrow indicating data flow or navigation.

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
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
Previous 1 … 248 249 250 251 252 253 254 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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