|
|
-
- --���ݿⱸ��
- 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
|