How do retrieve Column Description ?

  • Hi All !!

    i'm using MSSQL 2000 and have a question to ask...

    how can i retrieve the description of a column (field)?

    Notice that whenever we create a table using design view, there's a properties panel at the bottom of the window showing all the properties for the column ? The properties includes Description, Default Value, Identity & etc.

    Now, i need to retrieve these properties for my project... i've found a few query strings but no one return me the Description of the field...

    SELECT syscolumns.name AS ColumnName From syscolumns

    INNER JOIN sysobjects ON syscolumns.id = sysobjects.id

    Where sysobjects.Name =

    order by sysobjects.name

    SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS

    WHERE TABLE_NAME =

    EXEC sp_columns @table_name =

    so, any ideas ?? Thanx for viewing anyway !!

    🙂

  • You can find the description for a column in 'value' column of 'sysproperties' table.

    Hope this helps you...

    IF U DON'T SEEK PERFECTION, U CAN NEVER REACH EXCELLENCE!!!

    SD


    Regards,
    Sachin Dedhia

  • Thanx !!

    i've finally found it from the sysproperties...

    Thanx !!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply