C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
4
Reply
What is use of NoLock?
Rahul Chavan
9y
585
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
There is a situation where have possibility to more then one operation can have on same table or same time will occur in this case microsoft has been introduced Lock and WITH (NOLOCK). when read the record from tables.
Vinay Kumar Gupta
8y
0
There is a situation where have possibility to more then one operation can have on same table or same time will occur in this case microsoft has been introduced Lock and WITH (NOLOCK). when read the record from tables.
Vinay Kumar Gupta
8y
0
WITH (NOLOCK) is the equivalent of using READ UNCOMMITED as a transaction isolation level. So, you stand the risk of reading an uncommitted row that is subsequently rolled back, i.e. data that never made it into the database. So, while it can prevent reads being deadlocked by other operations, it comes with a risk. In a banking application with high transaction rates, it's probably not going to be the right solution to whatever problem you're trying to solve with it IMHO.
Awadhesh Jha
8y
0
If you want to write a query to retrieve the data from table and do not lock the table/ records then we use Nolock.Example-SELECT * FROM Customer WITH (NOLOCK)
Rahul Chavan
9y
0
Write a simple stored procedure code with Parameter?
Can we have trigger on DDL statements?
Message