Unix Technical Forum

sp_addextendedproperty versus sysproperties

This is a discussion on sp_addextendedproperty versus sysproperties within the SQL Server forums, part of the Microsoft SQL Server category; --> I have been searching for a way to associate a description with a column name. I have come across ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:01 PM
Jason
 
Posts: n/a
Default sp_addextendedproperty versus sysproperties

I have been searching for a way to associate a description with a
column name. I have come across multiple posts regarding this
question. Problem is that I have seen two different answers.

One post mentioned using the undocumented system table named
sysproperties while other posts mentioned using the
sp_addextendedproperty (and fn_listextendedproperty).

Which one and why one over the other?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:01 PM
Simon Hayes
 
Posts: n/a
Default Re: sp_addextendedproperty versus sysproperties


"Jason" <JayCallas@hotmail.com> wrote in message
news:f01a7c89.0402171022.72ae34c0@posting.google.c om...
> I have been searching for a way to associate a description with a
> column name. I have come across multiple posts regarding this
> question. Problem is that I have seen two different answers.
>
> One post mentioned using the undocumented system table named
> sysproperties while other posts mentioned using the
> sp_addextendedproperty (and fn_listextendedproperty).
>
> Which one and why one over the other?
>
> Thanks.


Use extended properties - that's what they are intended for. Microsoft does
not support direct modifications to system tables, and many of them
(including sysproperties) aren't documented.

See "System Tables" in Books Online.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com