读书人

运用SqlServer2008

发布时间: 2013-03-29 14:24:52 作者: rapoo

使用SqlServer2008
--表注释if exists (select * from ::fn_listextendedproperty('MS_Description', 'schema', 'dbo', 'table', 'SYS_ACTION', default, default))BEGIN exec sys.sp_dropextendedproperty 'MS_Description', 'schema', 'dbo', 'table', 'SYS_ACTION'ENDexec sys.sp_addextendedproperty 'MS_Description', '权限表', 'schema', 'dbo', 'table', 'SYS_ACTION'go--字段注释if exists (select * from ::fn_listextendedproperty('MS_Description', 'schema', 'dbo', 'table', 'SYS_ACTION', 'column', 'id'))BEGIN exec sys.sp_dropextendedproperty 'MS_Description', 'schema', 'dbo', 'table', 'SYS_ACTION', 'column', 'id'ENDexec sys.sp_addextendedproperty 'MS_Description', '权限ID', 'schema', 'dbo', 'table', 'SYS_ACTION', 'column', 'id'go

?

?

?

?

?

?

?

?

读书人网 >SQL Server

热点推荐