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 thick open book with a vermilion ribbon bookmark deep in its pages, reading glasses resting on it under a lamp.

Pagination With OFFSET and FETCH

July 26, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Order By, SQL Paging, SQL Server

OFFSET and FETCH make page-number queries readable, but deep pages scan past prior rows; keyset pagination keeps the next page focused.

Read More
SQL Server query for SQL Server2.

SQL SERVER – Find Current Identity of Table

June 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server DBCC

Many developers use MAX() to find the current identity of a table. I prefer DBCC CHECKIDENT, which reports the current identity value directly.

Read More
SQL SERVER - Order Of Column In Index

SQL SERVER – Order Of Column In Index

June 2, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL Scripts

Adding more columns does not make an index better. The order of column in index matters most, since an index is used only when its first column is in the query.

Read More
A library card catalogue drawer pulled open beside a long shelf of books

What Is an Index in SQL Server?

April 28, 2008
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

An index in SQL Server took one query from 33,517 reads to 66 on the same table. What clustered and nonclustered really mean, why every index is paid for on the way in, and how to find the ones nobody uses.

Read More
SQL SERVER - Optimization Rules of Thumb - Best Practices

SQL SERVER – Optimization Rules of Thumb – Best Practices

April 25, 2008
Pinal Dave
SQL Performance
Best Practices, SQL Index

My optimization rules of thumb for a slow running query: read the query plan first, turn scans into seeks, fix bookmark lookups with a covering index and more.

Read More
Two picket fence sections meeting at one shared post, one painted vermilion, one cream, with no gap between them.

Filtering on Dates Without Losing the Index

April 17, 2008
Pinal Dave
SQL Performance
Execution Plan, SQL DateTime, SQL Index, SQL Server

Filtering on dates without losing an index means using searchable ranges; learn half-open boundaries, date and datetime differences, and plan checks.

Read More
A hand pressing the slightly soft front tire of a bicycle in a hallway, a floor pump standing nearby.

Reading the Warnings in an Execution Plan

April 12, 2008
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Server, SQL Statistics

Warnings in an execution plan can reveal conversions, missing statistics, and spills; read each warning in workload context.

Read More
Previous 1 … 52 53 54 55 56 57 58 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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