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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to see the lock schema ot the user tables

Status
Not open for further replies.

SergioCbo

Technical User
Apr 6, 2003
1
US
Hi,


can you help me to write one query that give me the information about the scheme lock of my user tables. I'm working with sybase 12.0 on unix.

Thanks in Advance,


Sergio
 
Sergio,

Code:
In order to find out which tables have row level locking you can try the following:

use <DATABASE>
go
select name, objspare from sysobjects where type = 'U'
and sysstat2 & 57344 = 32768
order by name
go

Note that values sysstat2 & 57344 =0 or 8192 refer to all pages locks and 16384 is data pages locks.

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top