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
Execution Plan for Index Seek.

SQL SERVER – Improve Performance by Reducing IO – Creating Covered Index

March 9, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts

My T-SQL Tuesday #004 post on how a covered index can improve performance by reducing IO. Run the demo on a test server only, never on production.

Read More
Unmarked wooden spokes radiate from a brass hub toward blue, terracotta and pale stones.

ATN2: Keep the Quadrant When Calculating an Angle

March 8, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

ATN2 uses two components to calculate an angle while retaining its quadrant. I keep the argument order and angle unit visible. Dividing one component by the other would lose useful information and introduce a zero-denominator case.

Read More
SQL SERVER - Order of Columns in Update Statement Does not Matter

SQL SERVER – Order of Columns in Update Statement Does not Matter

March 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Does the order of columns in UPDATE statements matter? No. Setting Col1 before Col2 or the other way round gives the same result in SQL Server.

Read More
Illustrated cover: TRUNCATE Can Roll Back

SQL SERVER – Rollback TRUNCATE Command in Transaction

March 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

Many believe TRUNCATE cannot be rolled back. It can. Here is a Rollback TRUNCATE command example inside a transaction, and why TRUNCATE is logged.

Read More
SQL SERVER - Performance Comparison - INSERT TOP (N) INTO Table - Using Top with INSERT

SQL SERVER – Performance Comparison – INSERT TOP (N) INTO Table – Using Top with INSERT

March 3, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

A Performance Comparison of INSERT TOP (N) INTO a table versus INSERT with SELECT TOP (N). The first is clearly faster, but the two can give very different results.

Read More
Test compression data and page compression.

SQL SERVER – Data and Page Compressions – Data Storage and IO Improvement

March 1, 2010
Pinal Dave
SQL Performance
SQL Data Storage, SQL Index, SQL Scripts

SQL Server 2008 data and page compressions cut disk space and I/O. I explain ROW and PAGE compression and how to set them on tables, indexes and partitions.

Read More
Insert alogn with Top (N)

SQL SERVER – INSERT TOP (N) INTO Table – Using Top with INSERT

February 27, 2010
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts

INSERT TOP (N) INTO a table is not the same as INSERT with SELECT TOP (N). My example from a client training shows how the two methods differ.

Read More
Previous 1 … 265 266 267 268 269 270 271 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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