Sections

Tips, Tricks and Code Snippets

just another "how to" blog

Categories

  • C#
  • Dynamic Programming
  • Excel
  • Java
  • SQL Server
  • SSRS
  • TFS
  • VB.Net
  • VBA
  • VS 2012
  • WPF

Posts tagged with 'Exclusive Lock'

 

How to exclusively lock a table in MS SQL

Posted on January 31, 2014 by admin Leave a comment

Start a transaction and select from the table using the (TABLOCKX) hint. As the result, read from this table outside of the transaction will be queued until the transaction is committed or rolled back. 1 2 3 4 5 6 7 8 BEGIN TRAN     SELECT    * FROM      Table1 (TABLOCKX)   […]
Continue reading…

Categories: SQL Server

Tags: Exclusive Lock, MS SQL, T-SQL, Transaction

 

Recent Posts

  • How to set a flat style to Button and ComboBox in WPF
  • How to count the frequency of the words in a text
  • How to find all subclasses of a given class
  • How to align text in DataGrid
  • How to create an object by class name using Reflection

Archives

  • September 2014
  • June 2014
  • May 2014
  • February 2014
  • January 2014

Categories

  • C#
  • Dynamic Programming
  • Excel
  • Java
  • SQL Server
  • SSRS
  • TFS
  • VB.Net
  • VBA
  • VS 2012
  • WPF

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Tags

Access Align Button C# ComboBox DataGrid Dynamic Report Excel Exclusive Lock Flat Global Events Handling Java Keyboard Focus MS SQL Reflection Reporting Service ReportViewer Routed Events Serialization Soap SSRS T-SQL TFS Transaction VB.Net VBA Visual Studio 2012 Web Service Workspace WPF XAML

Archive

March 2023
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Powered by WordPress and HeatMap AdAptive Theme