数据表:T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行)

T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行):描述

名称

T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行)

代码

T_BAS_SQLTOTALCPUTIME

注释

sql总cpu时间排行

模型

BOS

主键

IDX_BAS_TOTALCPUTIME_TASKID


T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行):列规格定义

名称

代码

数据类型

长度

强制

注释

主键

FID

int

 

TRUE

 

检测任务ID

FDETECTIONTASKID

int

 

TRUE

 

检测时间

FCREATEDATE

datetime

 

TRUE

 

总Cpu时间

FTOTALCPUTIME

bigint

 

TRUE

 

平均时间

FAVGCPUTIME

bigint

 

TRUE

 

执行次数

FEXECUECOUNT

bigint

 

TRUE

 

sql文本

FSQLTEXT

ntext

 

TRUE

 

数据库服务器

FDATABASESERVER

nvarchar(255)

255

TRUE

 


T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行):脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_BAS_SQLTOTALCPUTIME')
and name = 'IDX_BAS_SQLTOTALCPUTIME_TASKID'
and indid > 0
and indid < 255)
drop index T_BAS_SQLTOTALCPUTIME.IDX_BAS_SQLTOTALCPUTIME_TASKID
go

if exists (select 1
from sysobjects
where id = object_id('T_BAS_SQLTOTALCPUTIME')
and type = 'U')
drop table T_BAS_SQLTOTALCPUTIME
go

/*==============================================================*/
/* Table: T_BAS_SQLTOTALCPUTIME */
/*==============================================================*/
create table T_BAS_SQLTOTALCPUTIME (
FID int not null,
FDETECTIONTASKID int not null default 0,
FCREATEDATE datetime not null default getdate(),
FTOTALCPUTIME bigint not null default 0,
FAVGCPUTIME bigint not null default 0,
FEXECUECOUNT bigint not null default 0,
FSQLTEXT ntext not null default '',
FDATABASESERVER nvarchar(255) not null default '',
constraint PK_BAS_SQLTOTALCPUTIME primary key (FID)
)
go

/*==============================================================*/
/* Index: IDX_BAS_SQLTOTALCPUTIME_TASKID */
/*==============================================================*/
create index IDX_BAS_SQLTOTALCPUTIME_TASKID on T_BAS_SQLTOTALCPUTIME (
FDETECTIONTASKID ASC
)
go


T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行):键值定义

名称

代码

主要的

IDX_BAS_TOTALCPUTIME_TASKID

IDX_BAS_TOTALCPUTIME_TASKID

TRUE


T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

IDX_BAS_SQLTOTALCPUTIME_TASKID

IDX_BAS_SQLTOTALCPUTIME_TASKID

FALSE

FALSE

FALSE

FALSE

FALSE

T_BAS_SQLTOTALCPUTIME(sql总cpu时间排行)