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 - Retrieve and Remove - A Simple Script

SQL SERVER – Plan Cache – Retrieve and Remove – A Simple Script

August 28, 2010
Pinal Dave
SQL Performance
SQL Scripts, SQL Server

A simple script to retrieve the plan cache for one query and remove just that plan, instead of clearing the whole cache on a busy server.

Read More
Execution Plan for Select Query Using View.

SQL SERVER – Adding Column is Expensive by Joining Table Outside View – Limitation of the Views Part 2

August 26, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL View

Need one more column from a view? Joining table outside view is expensive, and changing the view adds network traffic for every query. Views limitation part 2.

Read More
Two adjacent filter beds contain the same coarse and fine sections in reversed positions.

SQL SERVER – Does Order of Column in WHERE Clause Matter?

August 25, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

Does the Order of Column in WHERE Clause change a query plan? I invite a runnable example with a controlled comparison.

Read More
Select from view.

SQL SERVER – ORDER BY Does Not Work – Limitation of the Views Part 1

August 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL View

Why ORDER BY does not work in a view: the first limitation of views in my series, shown with an AdventureWorks example. Sort outside the view instead.

Read More
SQL SERVER - Computed Columns - Index and Performance

SQL SERVER – Computed Columns – Index and Performance

August 22, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

The last article in my series on computed columns looks at index and performance, with a summary of every earlier part on storage and PERSISTED columns.

Read More
Execut Plan Index Size Unsorted.

SQL SERVER – Computed Column – PERSISTED and Storage – Part 2

August 21, 2010
Pinal Dave
SQL Performance
SQL Data Storage, SQL Scripts

Part 2 of my look at the computed column and its effect on storage, with a list of the earlier articles in the series on PERSISTED storage and performance.

Read More
SQL SERVER – Function to Retrieve First Word of Sentence – String Operation

SQL SERVER – Function to Retrieve First Word of Sentence – String Operation

August 20, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A friend asked for a UDF that returns only the first word of a sentence. Here is my script with CHARINDEX and SUBSTRING, and how to turn it into a function.

Read More
Previous 1 … 252 253 254 255 256 257 258 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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