Solved

MS-SQL Transaction locking whloe table

Posted on 2004-09-19
4
325 Views
Last Modified: 2012-06-21
Well I m using MS-SQL Server and having desktop application. When i applied SqlTransaction to insert a row in table it locks whole table
How its possible to prevent to lock whole table
thanx in advance
0
Comment
Question by:meharmahmood
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
mAjKoL earned 250 total points
Comment Utility
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlConnectionClassBeginTransactionTopic2.asp

Look at this one and use SqlConnection.BeginTransaction(IsolationLevel)
Set the Isolation Level that will be best for you.

HTH
0
 
LVL 3

Expert Comment

by:mAjKoL
Comment Utility
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
changeXy challenge 13 56
How Complex Is This Java Course ? 9 62
PHP question(s) about order of output 9 38
Currency Conversion? 1 34
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now