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 - Identity Fields Review - The SQL Query Techniques Tutorial for SQL Server 2012

SQL SERVER – Identity Fields Review – The SQL Query Techniques Tutorial for SQL Server 2012

March 26, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity Fields Review is a chapter abstract from the Joes 2 Pros SQL Query Techniques Tutorial for SQL Server 2012, a book first tested in my classroom.

Read More
A sharpener beside a short usable pencil, an exhausted stub, and a fresh pencil

Identity Overflow Check: How Close Is Each INT Column to 2,147,483,647

November 1, 2012
Pinal Dave
SQL Tips and Tricks
SQL Identity, SQL Scripts, SQL Server

A table with few rows can still be one insert away from error 8115. Here is a check that shows the real headroom of every INT identity column.

Read More
A riveting tool aligns a new rivet with existing holes that preserve the old fastening positions

Explicit Identity Values: Loading Rows With Their Old Keys

August 7, 2012
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Identity, SQL Migration, SQL Table Operation

Moving rows and keeping their old keys? Here is the safe order of steps, and the counter check that saves you from a collision.

Read More
A long wooden peg board with a row of round pegs and one empty hole in the row, a red peg standing just past the gap.

Identity Column Quiz: Why Did My IDs Skip a Number?

January 4, 2012
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Identity, SQL Table Operation, SQL Transactions

This Identity Column Quiz starts with three rows and one rolled-back insert, then asks what ID the next row gets. The answer is 5, not 4. A tested script proves it and shows two more ways numbers go missing.

Read More
SQL SERVER - Tips from the Development Series - Overriding Identity Fields - Day 9 of 35

SQL SERVER – Tips from the Development Series – Overriding Identity Fields – Day 9 of 35

August 9, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Identity, SQL Scripts, SQL Server

Identity fields give each new customer or invoice a unique number, even with many users entering data. Here is when and how to go about Overriding Identity Fields.

Read More
A tray of cookies in rows with a few missing, fallen to the floor

SEQUENCE Cache Size, Gaps and Insert Throughput

June 9, 2011
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Constraint and Keys, SQL Identity, SQL Server

Compare SEQUENCE cache size, restart gaps, rollback gaps, and insert throughput with CACHE 50, CACHE 1000, and NO CACHE.

Read More
Two storks with red beaks rearranging sticks in a new nest on top of a village chimney

Migrating From MySQL to SQL Server: AUTO_INCREMENT, LIMIT and Other Differences

May 1, 2011
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Identity, SQL Migration, SQL Server

Plan migrating from MySQL with clear translations for identity values, paging, dates, booleans, string functions, and upserts.

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

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