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
Two open brass pocket watches with plain faces on a felt mat, a hand turning one crown to match the other watch.

Synchronizing Data Between Two Databases

August 15, 2010
Pinal Dave
SQL Tips and Tricks
ETL, SQL Replication, SQL Server, SQL Transactions

Synchronizing data between two SQL Server databases requires a latency target, change source, conflict rule, and recovery plan before tool selection.

Read More
Gouache painting of an open parcel with a loose red ribbon and blank receipt, illustrating INSERT OUTPUT before commit.

SQL Server: Why INSERT OUTPUT Does Not Prove a Commit

July 9, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Transactions

INSERT OUTPUT can return an identifier before a transaction commits. These tested examples show a rollback after a returned row and a pattern that returns results after commit.

Read More
Critical error.

SQL SERVER – TRANSACTION, DML and Schema Locks

June 21, 2010
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Stored Procedure, SQL Transactions

Most candidates in a senior developer interview could not create a scenario that shows schema locks. Here is a simple demo with a TRANSACTION and DML.

Read More
Skittles set in a triangle with two gaps in the middle, a red ball waiting at the near end before any throw.

Sequence Gaps: Why NEXT VALUE FOR Skips Numbers

June 19, 2010
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Identity, SQL Server, SQL Transactions

Explain sequence gaps, inspect cached values, test rollback behavior, and separate SQL Server identifiers from gapless numbering.

Read More
Two hands with scoops of vanilla and strawberry ice cream both reaching for the same single cone.

UPDATE With a JOIN: Changing Rows From Another Table Safely

February 12, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Joins, SQL Server, SQL Transactions

Use UPDATE with a JOIN safely, reject duplicate source keys, compare subquery and MERGE behavior, and verify the affected rows.

Read More
Hands splicing two ropes together, one strand slipping loose

MERGE Statement Pitfalls

January 10, 2010
Pinal Dave
SQL Tips and Tricks
Output Clause, SQL Server, SQL Transactions, SQL Trigger

MERGE statement pitfalls include duplicate source keys, concurrency races, trigger surprises, and complex actions that deserve testing.

Read More
SQL Server creation of index with ignore duplicate key.

SQL SERVER – Unique Nonclustered Index Creation with IGNORE_DUP_KEY = ON – A Transactional Behavior

January 6, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Transactions

When is IGNORE_DUP_KEY = ON useful? Jacob Sebastian and I built an example that shows its transactional behavior when you insert only nonduplicate rows.

Read More
Previous 1 … 10 11 12 13 14 15 16 17 Next
  • Books
  • Testimonials
  • Privacy Policy

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