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.
| 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 canceledhttp://senthilnagore.blogspot.com/ |
 |
|
|
doran_doran
Posting Yak Master
179 Posts |
Posted - 2009-11-04 : 09:21:16
|
| Thanks Senthil. it worked like charm.... |
 |
|
|
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. |
 |
|
|
AndrewMurphy
Master Smack Fu Yak Hacker
2916 Posts |
Posted - 2009-11-04 : 09:59:59
|
| normally you double quote the ' |
 |
|
|
doran_doran
Posting Yak Master
179 Posts |
Posted - 2009-11-04 : 11:11:57
|
| Great. I will try that. Thanks.... |
 |
|
|
|
|
|