Sybase ADDICT

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


  


  • Sybase sql stored procedures to use MDA tables

    May 1st, 2010 @ 11:56 PM by Jean-Francois LEBON | Be the 1st to comment

    MDA tables are very useful to understand what’s going on within your dataserver, so you can carry out accurate and successful performance and tuning campaigns. In this post I publish few basic Sybase stored procedures to use with MDA tables that focus on databases objects activity only (but I may release more MDA stored procedures in the future).

    If you haven’t installed yet MDA tables in your Sybase Adaptive Server, you can refer to my previous post HowTo install MonTables to install them. Read more…


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

  • Is DIRECT IO supported for Sybase ASE v15 on your platform ?

    April 2nd, 2010 @ 3:39 PM by Jean-Francois LEBON | Be the 1st to comment

    This sql query tells you if Direct IO is supported on your platform:

    select low from spt_values
    where  type='io'

    A value of 1 means “Yes, direct io is supported on this platform”.
    A value of 0 means “No, direct io is NOT supported on this platform”.

    Read this nice post from David Wein about Direct I/O device option.


    Tags: ase, howto, sql, sybase, Sybase Adaptive Server Enterprise, tips, transact-sql

  • Tell what platform Sybase ASE is running on, with a sql query

    March 31st, 2010 @ 8:17 PM by Jean-Francois LEBON | 1 Comment

    Want to know what platform your Sybase Adaptive Server is running on ? No need to connect to the machine to find out, just run this little query:

    select name from master..spt_values
    where type = 'E' and number = 1
    go

    For me it shows:

    name
    --------------------------------------------------------
    linux

    Nice…


    Tags: ase, howto, sql, sybase, Sybase Adaptive Server Enterprise, tips, transact-sql

  • Find out all “Defined Rules” in a Sybase ASE database

    January 10th, 2010 @ 3:02 PM by Jean-Francois LEBON | Be the 1st to comment

    The following transact-sql code will help you to find all defined rules in a Sybase ASE database.

    select sysobjects.name as "rule name",
    object_name(syscolumns.id) as "table name",
    syscolumns.name as "column name"
    from sysobjects, syscolumns
    where object_name(syscolumns.domain)=sysobjects.name
    and sysobjects.type = 'R'
    go
    

    The output displays the table and column to which the rules are bound.


    Tags: ase, howto, sql, sybase, Sybase Adaptive Server Enterprise, tips, transact-sql

  • Find tables with identity columns

    May 23rd, 2009 @ 9:28 PM by Jean-Francois LEBON | 1 Comment

    Quickly find out the database’s tables having identity columns:

    select object_name(id) as "tablename",name as "column_name"
    from syscolumns where status =128
    go

    Enjoy ;-)


    Tags: ase, howto, sql, sybase, Sybase Adaptive Server Enterprise, tips, transact-sql

« Previous Entries


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
  • Sybase Jobs [US]
  • Sybase News for Sybase Experts

See my Resume:

  • View Jean-Francois LEBON's profile on LinkedIn

Archives:

  • 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:

  • Register
  • Log in
  • RSS Feed
article ase asiq End of Life Notice General News howto iq news performance podcast powerbuilder replication replication server Review screencast sql sybase Sybase Adaptive Server Enterprise Sybase Adaptive Server IQ Sybase Articles Sybase HowTo Sybase News Sybase Replication Server Sybase Tips & Tricks Sybase Transact-SQL Code tips transact-sql video Videos/Podcasts/Webcasts
© Sybase-ADDICT.com - All Rights Reserved. Entries RSS Comments RSS Login sybase addict