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
SQL SERVER - Plan Cache and Data Cache in Memory

SQL SERVER – Plan Cache and Data Cache in Memory

December 28, 2010
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts

Two scripts I share with clients all the time: they show the plan cache and data cache in memory, with cached plans by size and cached pages by table.

Read More
Table header.

SQL SERVER – ORDER BY ColumnName vs ORDER BY ColumnNumber

December 27, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

I strongly favor ORDER BY ColumnName over ORDER BY ColumnNumber. The performance is the same, but here is why column numbers are risky in real code.

Read More
SQL Server query window.

SQL SERVER – Server Side Paging in SQL Server Denali – Part2

December 26, 2010
Pinal Dave
SQL Performance
SQL Paging, SQL Scripts

Part 2 of server side paging in SQL Server Denali: a reader keeps rows per page and page number in a table, and OFFSET and FETCH can read them from there.

Read More
SQL Server query window displaying cost calculations.

SQL SERVER – Index Created on View not Used Often – Observation of the View – Part 2

December 23, 2010
Pinal Dave
SQL Performance
SQL Scripts, SQL View

A reader asked what happens when we create an index on the base table as well as on the view. Part 2 of my observation of the view looks at both cases.

Read More
Gouache painting: a battered tin box with its lid propped open stands on a bench

geometry Collections: Read Members With STGeometryN

December 22, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry Collections hold member shapes that STGeometryN can return individually. I extract a point and a line from one fixed collection. A third request deliberately exceeds its member count.

Read More
SQL Server query window displaying cost calculations.

SQL SERVER – Index Created on View not Used Often – Observation of the View

December 21, 2010
Pinal Dave
SQL Performance
SQL Scripts, SQL View

When is an index created on view actually used? After showing it is often ignored, I demonstrate a condition where SQL Server uses it, including NOEXPAND.

Read More
SQL SERVER - Index Created on View not Used Often - Limitation of the View 12

SQL SERVER – Index Created on View not Used Often – Limitation of the View 12

December 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL Training, SQL View

At my Hyderabad seminar someone asked: will an Index Created on a view be used when you query the view? Not always. Limitation 12 of views explained.

Read More
Previous 1 … 242 243 244 245 246 247 248 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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