Sybase ADDICT

Sybase tips, howto and technical informations – All in a blog !
  • Home
  • Sybase Downloads
  • Sybase Related Links


 


  • List tables with allpages or datarows locking scheme

    February 4th, 2011 @ 2:26 PM by Jean-Francois LEBON | Be the 1st to comment

    To list the tables that use datapages or datarows locking scheme, use:

    select name,sysstat2
    from sysobjects
    where type = 'U'
    and (sysstat2 & 16384 = 16384 or sysstat2 & 32768 =32768)

    To list tables that use allpages locking scheme, use:

    select name,sysstat2
    from sysobjects
    where type = 'U'
    and sysstat2 & 8192 = 8192

    Tags: sybase, Sybase Adaptive Server Enterprise, transact-sql

  • Previous post
    Next post


  • No Comments »

    No comments yet.

    RSS feed for comments.

    Something to say ? Leave a comment...

    You must be logged in to post a comment.



Categories:

  • Review
  • Sybase Adaptive Server Enterprise
  • Sybase Adaptive Server IQ
  • Sybase Articles
  • Sybase HowTo
  • Sybase News
    • End of Life Notice
    • General News
  • Sybase Replication Server
  • Sybase Tips & Tricks
  • Sybase Transact-SQL Code
  • Videos/Podcasts/Webcasts

Quick Links:

  • Sybase quick refence
  • Sybase Bookmarks
  • Sybase Team Forums
  • Sybase Inc
  • International Sybase User Group
  • CodeXchange
  • SQL Anywhere question and answer
  • You need a Sybase DBA

Archives:

  • February 2011
  • January 2011
  • October 2010
  • August 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • September 2009
  • July 2009
  • May 2009
  • April 2009
  • January 2009
  • December 2008
  • October 2008
  • September 2008
  • May 2008
© Sybase-ADDICT.com - All Rights Reserved. Entries RSS Comments RSS sybase addict