Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Informix Online and ROW LEVEL LOCKING (LOCK MODE ROW)


Is it possible to do row level locking when working with an Informix server?   

    All settings and options for row level locking are done at the table and database level. The client application does not require any modifications or specific Informix server support to benefit from Informix Online row level locking.

    Please see your Informix documentation for specific server and table settings. Example Informix table create (please see your Informix documentation for specific information):

    CREATE TABLE ROWLOCKTEST ( FLD CHAR(5), FLD2 FLOAT ) LOCK MODE ROW LOCK MODE PAGE is the default if not specified.

    ALTER TABLE can be used to change the LOCK MODE for a table. Example: )Start a transaction from the Informix client (TDatabase.starttransaction) 2)Modify a row and post (do not commit yet (TDatabase.commit)) 3)From another client or connection attempt a change to the updated, uncommitted row. The second client should time out. 4)All rows not currently involved in a transaction can be modified.

    If the Informix table in the above example had been created or altered with LOCK MODE PAGE then rows adjacent (within the same locked page) to the row or rows currently part of a pending transaction will also be locked. 7/ 3/99 0:20:05 AM

     



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use