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 long sheet of rolled dough cut into many identical shapes in one press, a single small cookie cutter lying beside it.

Replacing a Cursor With a Set-Based Query

July 25, 2007
Pinal Dave
SQL Performance
SQL Cursor, SQL Joins, SQL Scripts, SQL Server

Replacing a cursor with one set-based update can simplify row processing; this worked example shows correctness checks and fair timing.

Read More
Convert Query Results.

SQL SERVER – 2005 – SSMS – View/Send Query Results to Text/Grid/Files

July 19, 2007
Pinal Dave
SQL Performance
SQL Download, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Server Security

Three ways to send query results to text, grid or file in SSMS: the shortcuts CTRL+T, CTRL+D and CTRL+SHIFT+F, the toolbar, or the menu bar.

Read More
SQL SERVER - CASE Statement in ORDER BY Clause - ORDER BY using Variable

SQL SERVER – CASE Statement in ORDER BY Clause – ORDER BY using Variable

July 17, 2007
Pinal Dave
SQL Performance
SQL Function, SQL Scripts

Stop building ORDER BY strings and running them with EXEC in a stored procedure. I show how a CASE statement in ORDER BY sorts by a variable without dynamic SQL.

Read More
SQL SERVER - Comparison : Similarity and Difference #TempTable vs @TempVariable

SQL SERVER – Comparison : Similarity and Difference #TempTable vs @TempVariable

July 3, 2007
Pinal Dave
SQL Performance
SQL Scripts, SQL TempDB

#TempTable and @TempVariable both live in tempdb, but they differ in scope and purpose. Their similarities and differences, explained side by side.

Read More
SQL SERVER - 2005 Comparison SP_EXECUTESQL vs EXECUTE/EXEC

SQL SERVER – 2005 Comparison SP_EXECUTESQL vs EXECUTE/EXEC

July 2, 2007
Pinal Dave
SQL Performance
SQL Cursor, SQL Download, SQL Scripts, SQL Stored Procedure

SP_EXECUTESQL vs EXECUTE/EXEC in SQL Server 2005: what they share for dynamic SQL, like late compile and variable scope, and how they differ.

Read More
A long coach filling six parking bays while small cars wait at the entrance

Memory Grants: Why a Query Waits for Memory

June 24, 2007
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Performance, SQL Wait Stats

Memory grants can leave SQL Server queries waiting on RESOURCE_SEMAPHORE; inspect estimates, grants, and spills before adding memory.

Read More
SQL SERVER - Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild - SQL SERVER 2000 and SQL SERVER 2005

SQL SERVER – Comparison Index Fragmentation, Index De-Fragmentation, Index Rebuild – SQL SERVER 2000 and SQL SERVER 2005

June 24, 2007
Pinal Dave
SQL Performance
DBA, SQL Index, SQL Scripts, SQL Server DBCC, SQL Server Security, SQL Utility

What is Index Fragmentation and how do page splits cause it? How to measure it with DBCC SHOWCONTIG in SQL Server 2000 and sys.dm_db_index_physical_stats in 2005.

Read More
Previous 1 … 117 118 119 120 121 122 123 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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