Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Add extended properties > Description

Author  Topic 

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-04 : 08:59:18
How do I add extended properties description? for example,

alter table column description 'this column is for ID'

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2009-11-04 : 09:11:46
DECLARE @v sql_variant
SET @v = N'this column is for ID'
EXECUTE sp_addextendedproperty N'MS_Description', @v, N'SCHEMA', N'dbo', N'TABLE', N'Table_name', N'COLUMN', N'column_name'

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-04 : 09:21:16
Thanks Senthil. it worked like charm....
Go to Top of Page

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-04 : 09:32:12
one issue when adding ' to description. for example. This ID belongs to Engineer's project ID.
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2009-11-04 : 09:59:59
normally you double quote the '
Go to Top of Page

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-04 : 11:11:57
Great. I will try that. Thanks....
Go to Top of Page
   

- Advertisement -