Sybase ADDICT

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


 


  • Find text/image columns in a database

    January 6th, 2009 @ 12:52 AM by Jean-Francois LEBON | Be the 1st to comment

    Might be a good idea to share some usefull code snippet. Let’s start with a simple query to find out text/image columns in a database. This one will build a list of columns using text/image columns for each tables:

    select user_name(o.uid) as "owner",
    o.name as "table",
    c.name as "column"
    from   sysobjects o, syscolumns c
    where  o.type = "U"
    and    o.id = c.id
    and    c.type in (34,35)
    order  by 1,2,3
    go

    Enjoy ;-)


    Tags: ase, howto, sql, sybase, Sybase Adaptive Server Enterprise, tips, 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