Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2003, 08:04 AM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Pessimistic locking

According to the MSDN:-

Using pessimistic locking, the engine locks the page that contains the record being edited as soon as the Edit method is issued, and doesn’t release the lock until the changes to the record are explicitly committed or canceled. Pessimistic locking is the default locking mode for recordsets.


Ok, so I can release a lock by using RecordSet.Update but how can I release the lock without performing an update?


Dazed And Confused
 
Old November 17th, 2003, 08:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

recordset.CancelUpdate





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO vs DAO pessimistic locking knowledge76 Access VBA 3 December 3rd, 2008 12:17 PM
Pessimistic locking SQLScott SQL Server 2005 1 September 14th, 2006 12:51 PM
Database Locking royalsurej General .NET 2 November 9th, 2004 08:24 AM
Table Locking hortoristic SQL Server 2000 1 February 9th, 2004 09:17 PM
Locking Peter Riley SQL Server ASP 3 June 5th, 2003 07:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.