if exists (select 1
from sysindexes
where id = object_id('T_PA_CALCUTASK')
and name = 'IDX_PA_CALCUTASK'
and indid > 0
and indid < 255)
drop index T_PA_CALCUTASK.IDX_PA_CALCUTASK
go
if exists (select 1
from sysobjects
where id = object_id('T_PA_CALCUTASK')
and type = 'U')
drop table T_PA_CALCUTASK
go
/*==============================================================*/
/* Table: T_PA_CALCUTASK */
/*==============================================================*/
create table T_PA_CALCUTASK (
FID int not null default 0,
FNUMBER nvarchar(80) not null default ' ',
FTYPE char(1) not null default ' ',
constraint PK_T_PA_CALCUTASK primary key (FID)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'计算互斥表(计算任务互斥校验用)',
'user', @CurrentUser, 'table', 'T_PA_CALCUTASK'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'唯一编码签名(计算任务互斥校验用)',
'user', @CurrentUser, 'table', 'T_PA_CALCUTASK', 'column', 'FNUMBER'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'1、薪酬发放
2、薪酬核算',
'user', @CurrentUser, 'table', 'T_PA_CALCUTASK', 'column', 'FTYPE'
go
/*==============================================================*/
/* Index: IDX_PA_CALCUTASK */
/*==============================================================*/
create index IDX_PA_CALCUTASK on T_PA_CALCUTASK (
FTYPE ASC
)
go
|