|
|
--数据库备份
|
|
create table tb_databackup (
|
|
id int identity, --自增阿弟
|
|
title nvarchar(100) null, --标题
|
|
paixu int null, --排序
|
|
storage nvarchar(100) null, --内存大小
|
|
user_name nvarchar(100) null, --用户名称
|
|
add_time datetime null default getdate(), --添加日期
|
|
constraint PK_TB_DATABACKUP primary key (id)
|
|
)
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'自增阿弟',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'标题',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'title'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'排序',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'paixu'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'内存大小',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'storage'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'用户名称',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'user_name'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'添加日期',
|
|
'user', @CurrentUser, 'table', 'tb_databackup', 'column', 'add_time'
|
|
go
|