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 Recompilation and Reduce Recompilation - Performance Tuning

SQL SERVER – Plan Recompilation and Reduce Recompilation – Performance Tuning

February 18, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Stored Procedure, SQL System Table

Plan recompilation hurts performance just like a first compile. Learn what causes it, from schema changes to SET options, and how to reduce recompilation.

Read More
Gouache painting of a row of prepared ingredient bowls beside an empty mixing bowl with a red whisk across it

Stored Procedure Optimization Tips That Still Matter

February 16, 2010
Pinal Dave
SQL Performance
Best Practices, SQL Coding Standards, SQL Stored Procedure

Stored Procedure Optimization comes down to a short list of habits you can test on your own server. This post builds one badly written procedure and one good one on a small orders table, then measures the difference in logical reads. It also covers parameter sniffing, the sp_ prefix, short transactions and error handling.

Read More
Results window of AdventureWorks.

SQL SERVER – Size of Index Table – A Puzzle to Find Index Size for Each Index on Table

November 18, 2009
Pinal Dave
SQL Puzzle
SQL Index, SQL Scripts, SQL Stored Procedure

sp_spaceused shows the total index size of a table. My puzzle for you: write a query that adds the size of each index to the sys.indexes list.

Read More
Execution plan of SQL Server query.

SQL SERVER – Stored Procedure are Compiled on First Run – SP taking Longer to Run First Time

November 8, 2009
Pinal Dave
SQL Interview Questions and Answers
SQL Cache, SQL Scripts, SQL Stored Procedure

Why does a stored procedure take longer the first time? Stored procedures are not pre-compiled; each one is compiled on first run and cached after that.

Read More
A hand working a sorting gate at a sheep pen, holding back one red-marked sheep

Validating JSON Parameters Before a Procedure Uses Them

October 23, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, JSON, SQL Server, SQL Stored Procedure

Learn validating JSON parameters before changing data with ISJSON, JSON_PATH_EXISTS, TRY_CAST, and a single clear list of input errors.

Read More
A line of hands passing buckets, one hand holding a red bucket far too long

Finding the Slowest Statement Inside a Stored Procedure

October 20, 2009
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Stored Procedure

Find the slowest statement inside a stored procedure using query stats offsets, CPU and read totals, then confirm with Query Store.

Read More
SQL SERVER - Insert Values of Stored Procedure in Table - Use Table Valued Function

SQL SERVER – Insert Values of Stored Procedure in Table – Use Table Valued Function

September 23, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure, SQL Table Operation

How do you insert values of stored procedure output into a table? The traditional temp table way, and an alternate method with a Table Valued Function.

Read More
Previous 1 … 18 19 20 21 22 23 24 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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