Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX Sybase Can i lock a record? (using C)

Status
Not open for further replies.

ronenhm

Programmer
Dec 20, 2001
43
IL
I have been told that it is not possible using the C programming
language to lock a record (one single entry on a table) in a database
such as Sybase. Is this correct? I find it hard to believe. Do you guys
know of a way?
 
Can't comment on the C aspect, but Sybase introduced row-level locking with version 11.9.x of Adaptive Server. Previously, only page locking was available.

Greg.
 
You can't prior to version 11.9.x. You should be able to now.

To lock a single record in Sybase, you'll need to set up the table for row-level lock type first.

To access this from C, you will need the Open-Client Libraries. This I've never tried, but it is possible.

- Greg Hwin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top