Create Table with Columns Descriptons or Comment.

  • I ´d  like to know, How can I put comments or descriptions about the columns of table, because when I use Enterprise Manager in design table is possible to put the description of columns, but what´s the table have the resgister about my columns descriptions.  

  • Check out sp_addextendedproperty in books online.

  • Please,  Follow this eg. Steps on Enterprise Manager, at database Northwind,  Tables,  you click with right in Desin Table eg, ORDERS table,  show  the screen (Design Table ‘ORDERS’ in Northwind on server....), there is the Description columns for ORDERS table, you to put any description, eg. XXXXX,   what´s system table I find this description colunms with XXXXX ?. Ok!

     

    Thank´s

     

    Ian.

  • SELECT   *

    FROM   ::fn_listextendedproperty(NULL, NULL, NULL, NULL, NULL, NULL, NULL)

  • Sorry, I did this command in query analyzer  in database Northwind for test, but all the columns are nulls, I think that some column must be with XXXXX at ORDERS table.

    Please , is possible you explain me this test, because my test dosen´t work ok!

Viewing 6 posts - 1 through 5 (of 5 total)

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