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 boat keel with boards aligned along it and another small group lying crosswise

Clustered Key Choice for Date Range Queries: Date or Identity

December 14, 2013
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL DateTime, SQL Identity, SQL Index

Should you cluster on OrderDate? Measure one month of orders on three designs and see what each one costs in reads before you rebuild a table.

Read More
SQL SERVER - How to an Add Identity Column to Table in SQL Server

SQL SERVER – How to Add an Identity Column Using the IDENTITY Property

July 27, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity

How do you add an identity column to a table in SQL Server? I explain three cases using the IDENTITY property, including why a second one fails.

Read More
SQL SERVER - Delay Command in SQL Server - SQL in Sixty Seconds #055

SQL SERVER – Delay Command in SQL Server – SQL in Sixty Seconds #055

July 17, 2013
Pinal Dave
SQL Video
Database, SQL Identity, SQL in Sixty Seconds, SQL Scripts

Need SQL Server to wait before it runs the next statement? This SQL in Sixty Seconds video shows the delay command, WAITFOR DELAY, in action.

Read More
SQL Server expected answer.

SQL SERVER – Add Identity Column to Table Based on Order of Another Column

May 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity

A reader wants to add identity column values to an existing table in the order of another column, not the default order. Here is my answer. Do you know a better one?

Read More
SQL SERVER - Puzzle SET ANSI_NULLS and Resultset - SQL in Sixty Seconds #052

SQL SERVER – Puzzle SET ANSI_NULLS and Resultset – SQL in Sixty Seconds #052

May 29, 2013
Pinal Dave
SQL Video
Database, SQL Identity, SQL in Sixty Seconds, SQL Scripts

I take my puzzle to the next level with SET ANSI_NULLS OFF. Why do two different queries now return almost the same results? Watch the 60 second video.

Read More
SQL SERVER - RESEED Identity Column in Database Table - Rest Table Identity Value - SQL in Sixty Seconds #051

SQL SERVER – RESEED Identity Column in Database Table – Rest Table Identity Value – SQL in Sixty Seconds #051

May 8, 2013
Pinal Dave
SQL Video
Database, SQL Identity, SQL in Sixty Seconds, SQL Scripts

Episode 51 of SQL in Sixty Seconds shows how to RESEED identity column values to a number higher, or even lower, than the current one.

Read More
Two hands set a landscape painting into a new wooden frame, the old frame leaning empty.

Adding IDENTITY to an Existing Column With ALTER TABLE SWITCH

May 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Server, SQL Table Operation, Table Partitioning

Add IDENTITY to an existing column with an empty matching table, ALTER TABLE SWITCH, a reseed, and full dependency checks.

Read More
Previous 1 2 3 4 5 6 7 Next
  • Books
  • Testimonials
  • Privacy Policy

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