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 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
Temp Table and Table Variable execution differences.

SQL SERVER – Difference Temp Table and Table Variable – Effect of Transaction

December 28, 2009
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts, SQL Transactions

Temp table versus table variable, part two: a transaction rollback undoes changes to a temp table, but a table variable keeps its values.

Read More
93538 Same TransactionID.

SQL SERVER – Interesting Observation of DMV of Active Transactions and DMV of Current Transactions

April 11, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table, SQL Transactions

sys.dm_tran_active_transactions and sys.dm_tran_current_transaction look alike, but one lists active transactions for the instance, the other only your session.

Read More
SQL SERVER - Transaction and Local Variables - Swap Variables - Update All At Once Concept

SQL SERVER – Transaction and Local Variables – Swap Variables – Update All At Once Concept

October 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Transactions

Two ideas with examples: transactions have no effect on local variables, and an UPDATE applies all its changes at once, which lets you Swap Variables in one go.

Read More
SQL SERVER - Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

SQL SERVER – Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

August 18, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Scripts, SQL Server Security, SQL Transactions

How do you find which table has a transaction lock and what lock type it is? Imran Mohammed explains it for SQL Server 2000 and 2005, and how to avoid locks.

Read More
SQL SERVER - 2005 -Track Down Active Transactions Using T-SQL

SQL SERVER – 2005 -Track Down Active Transactions Using T-SQL

July 24, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL System Table, SQL Transactions

Want to track down active transactions in your database? One simple DMV query on sys.dm_tran_session_transactions returns them in SQL Server 2005.

Read More
SQL SERVER - Two Connections Related Global Variables Explained - @@CONNECTIONS and @@MAX_CONNECTIONS

SQL SERVER – Two Connections Related Global Variables Explained – @@CONNECTIONS and @@MAX_CONNECTIONS

September 29, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Transactions

@@CONNECTIONS and @@MAX_CONNECTIONS explained: login attempts since SQL Server started versus the most simultaneous user connections allowed.

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

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