What is the difference between Optimistic and Pessimistic locking?
Answer / Gagan Kumar Mishra
Optimistic locking assumes that multiple users will not modify the same data simultaneously. It checks for conflicts when the data is updated, while the update operation takes place in the user's local cache. Pessimistic locking, on the other hand, locks the data before it is modified to prevent other users from modifying it until the first transaction is completed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you explain how to enable and disable connection pooling?
Where do you store connection string ?
What are the classes in System.Data.Common Namespace?
How to get the new oledb connection of oracle in database programming?
Do we use stored procedure in ADO.Net?
How do we invoke queries from the application ?
What is data adapter in ado.net with example?
What is the hierarchy of data in databases?
What is microsoft ado?
Define Execute Scalar?
What is the difference between connected and disconnected environment?
Which database is the ado.net sql connection object designed for?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)