Create table T_ErrorLogTable_tb
(
ELTID int identity(1,1) primary key,--編號
ELTTime date,--錯誤發生日期
ELTAddress nvarchar(50),--錯誤發生地址
ELTMessage nvarchar(200)--錯誤發生信息
)
--表注釋 @value為注釋內容 @leve12name為注釋表名
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'錯誤信息表' , @level0type=N'SCHEMA',
@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_ErrorLogTable_tb'
--列注釋 @value為注釋內容 @leve12nane為注釋列名
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'編號' ,
@level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_ErrorLogTable_tb',
@level2type=N'COLUMN',@level2name=N'ELTID';
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'錯誤發生日期' ,
@level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_ErrorLogTable_tb',
@level2type=N'COLUMN',@level2name=N'ELTTime';
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'錯誤發生地址' ,
@level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_ErrorLogTable_tb',
@level2type=N'COLUMN',@level2name=N'ELTAddress';
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'錯誤發生信息' ,
@level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'T_ErrorLogTable_tb',
@level2type=N'COLUMN',@level2name=N'ELTMessage';