SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQLDMO Column Description property


SQLDMO Column Description property

Author
Message
Brian Lockwood
Brian Lockwood
Old Hand
Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)

Group: General Forum Members
Points: 322 Visits: 2
sqldmo doesn't seem to expose the DESCRIPTION property of a column. note: this can be edited in SQL SERVER Enterprise Mgr (sql2000)

Is there anyway to obtain this description property of a column via sqldmo.

thanks in advance

Brian Lockwood
President
LockwoodTech Software

Brian Lockwood
President
ApexSQL - SQL Developer Essentials

http://www.apexsql.com/blog

Stand up for an Independent SQL Community - be Informed
Andy Warren
Andy Warren
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: Moderators
Points: 11479 Visits: 2730
Not that I can find. You can always retrieve it using ADO, either by doing select name, value from sysproperties where object_name(id)='categories' and name='ms_description' or you can look at using fn_listextendedproperty to avoid directly reading from system tables. The first way looks to be the cleanest, you could pull all of them for an entire table or db over at once.






Andy

Andy
SQLAndy - My Blog!
Connect with me on LinkedIn
Follow me on Twitter
Brian Lockwood
Brian Lockwood
Old Hand
Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)Old Hand (322 reputation)

Group: General Forum Members
Points: 322 Visits: 2
quote:

Not that I can find. You can always retrieve it using ADO, either by doing select name, value from sysproperties where object_name(id)='categories' and name='ms_description' or you can look at using fn_listextendedproperty to avoid directly reading from system tables. The first way looks to be the cleanest, you could pull all of them for an entire table or db over at once.






Andy




great thanks

Brian Lockwood
President
LockwoodTech Software

Brian Lockwood
President
ApexSQL - SQL Developer Essentials

http://www.apexsql.com/blog

Stand up for an Independent SQL Community - be Informed
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search