DatabaseTableApplicationCreatedLinks
sybsystemprocssysqueryplans  31 Aug 14Joins Schema ColumnUsage Queries Dependencies

1     create table sysqueryplans(-- 0 Rows, Data: 2 KB, Index: 6 KB
2         uid int not null,
3         gid int not null,
4         hashkey int not null,
5         id int not null,
6         type smallint not null,
7         sequence smallint not null,
8         status int null,
9         text varchar(255) null,
10        dbid int null,
11        qpdate datetime null,
12        sprocid int null,
13        hashkey2 int null,
14        key1 int null,
15        key2 int null,
16        key3 int null,
17        key4 int null
18    )
19    
20    create unique clustered index csysqueryplans on sysqueryplans(-- 2 KB refcount: 100
21        uid, gid, hashkey, id, type, sequence
22    )
23    create unique index ncsysqueryplans on sysqueryplans(-- 2 KB refcount: 8
24        id, type, sequence
25    )
26    
27    alter table sysqueryplans lock datarows
28    
29    Grant Select on sysqueryplans to public
30    
JOINS
From ColumnsTo TableTo ColumnsCntCstrStrength
[id]sybsystemprocs..sysqueryplans[id]48 Simple Join
[sequence]sybsystemprocs..sysqueryplans[sequence]8 Simple Join
[text]sybsystemprocs..sysqueryplans[text]4 Simple Join
[type, sequence]sybsystemprocs..sysqueryplans[type, sequence]4 Simple Join
[uid, gid, hashkey]sybsystemprocs..sysqueryplans[uid, gid, hashkey]4 Simple Join
[uid, gid, id]sybsystemprocs..sysqueryplans[uid, gid, id]4 Simple Join
[uid, hashkey, type, sequence, text]sybsystemprocs..sysqueryplans[uid, hashkey, type, sequence, text]4 Simple Join

Estimated Index Usage
sysqueryplans.csysqueryplans unique clustered(uid, gid, hashkey, id, type, sequence)100
sysqueryplans.ncsysqueryplans unique(id, type, sequence)8

ALIASES USED for sybsystemprocs..sysqueryplans
NO_ALIASabg1g2inextop1p2prevqsq1sq2sq3sq4sysqueryplans
4011115152211332211

SCHEMA

COLUMN USAGE
uidsp_cmp_all_qplans  sp_cmp_qplans  sp_copy_all_qplans  sp_copy_qplan  sp_drop_all_qplans  sp_drop_metrics  sp_drop_qplan  sp_drop_query_tuning  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_set_qplan  sp_show_query_tuning  sysquerymetrics 
gidsp_backup_metrics  sp_cmp_all_qplans  sp_copy_all_qplans  sp_copy_qplan  sp_drop_all_qplans  sp_drop_metrics  sp_drop_qpgroup  sp_drop_query_tuning  sp_filter_metrics  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_show_query_tuning  sysquerymetrics 
hashkeysp_cmp_all_qplans  sp_cmp_qplans  sp_copy_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sysquerymetrics 
idsp_cmp_all_qplans  sp_cmp_qplans  sp_copy_all_qplans  sp_copy_qplan  sp_drop_all_qplans  sp_drop_metrics  sp_drop_qplan  sp_drop_query_tuning  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_set_qplan  sp_show_query_tuning  sysquerymetrics 
typesp_cmp_all_qplans  sp_cmp_qplans  sp_copy_all_qplans  sp_copy_qplan  sp_drop_all_qplans  sp_drop_query_tuning  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_set_qplan  sp_show_query_tuning  sysquerymetrics 
sequencesp_cmp_all_qplans  sp_cmp_qplans  sp_copy_qplan  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_set_qplan  sp_show_query_tuning  sysquerymetrics 
statussp_copy_qplan  sp_import_qpgroup  sp_show_query_tuning 
textsp_cmp_all_qplans  sp_cmp_qplans  sp_copy_qplan  sp_find_qplan  sp_help_qpgroup  sp_help_qplan  sp_import_qpgroup  sp_set_qplan  sp_show_query_tuning  sysquerymetrics 
dbidsp_copy_qplan  sp_import_qpgroup 
qpdatesp_copy_qplan  sp_import_qpgroup 
sprocidsp_copy_qplan  sp_import_qpgroup 
hashkey2sp_copy_qplan  sp_import_qpgroup 
key1sp_copy_qplan  sp_import_qpgroup 
key2sp_copy_qplan  sp_import_qpgroup 
key3sp_copy_qplan  sp_import_qpgroup 
key4sp_copy_qplan  sp_import_qpgroup 

QUERIES
Joined With Links
sybsystemprocs..sp_help_qpgroup:214
sybsystemprocs..sp_show_query_tuning:63
sybsystemprocs..sp_help_qpgroup:209
sybsystemprocs..sp_help_qpgroup:231
sybsystemprocs..sp_cmp_all_qplans:106
sybsystemprocs..sp_help_qpgroup:156
sybsystemprocs..sp_drop_query_tuning:69
sybsystemprocs..sp_cmp_qplans:141
sybsystemprocs..sp_show_query_tuning:95
sybsystemprocs..sysquerymetrics:1
sybsystemprocs..sp_show_query_tuning:68
sybsystemprocs..sp_help_qpgroup:267
sybsystemprocs..sp_show_query_tuning:74
sybsystemprocs..sp_cmp_qplans:108
sybsystemprocs..sp_help_qpgroup:248
sybsystemprocs..sp_show_query_tuning:90
sybsystemprocs..sp_show_query_tuning:101

DEPENDENCIES
READERS AND WRITERS
read by proc sybsystemprocs..sp_cmp_qplans  
   called by proc sybsystemprocs..sp_copy_qplan  
      called by proc sybsystemprocs..sp_copy_all_qplans  
read_written by proc sybsystemprocs..sp_import_qpgroup  
read_written by proc sybsystemprocs..sp_backup_metrics  
   called by proc sybsystemprocs..sp_metrics  
read_written by proc sybsystemprocs..sp_drop_query_tuning  
   called by proc sybsystemprocs..sp_query_tuning  
read_written by proc sybsystemprocs..sp_copy_qplan  
read_written by proc sybsystemprocs..sp_drop_all_qplans  
read by proc sybsystemprocs..sp_find_qplan  
read by proc sybsystemprocs..sp_help_qplan  
   called by proc sybsystemprocs..sp_cmp_all_qplans  
read by view sybsystemprocs..sysquerymetrics  
   read by proc sybsystemprocs..sp_show_metrics  
      called by proc sybsystemprocs..sp_metrics  
written by proc sybsystemprocs..sp_drop_qplan  
read by proc sybsystemprocs..sp_show_query_tuning  
   called by proc sybsystemprocs..sp_query_tuning  
read by proc sybsystemprocs..sp_cmp_all_qplans  
read by proc sybsystemprocs..sp_help_qpgroup  
read_written by proc sybsystemprocs..sp_drop_metrics  
   called by proc sybsystemprocs..sp_metrics  
read by proc sybsystemprocs..sp_filter_metrics  
   called by proc sybsystemprocs..sp_metrics  
read by proc sybsystemprocs..sp_drop_qpgroup  
read by proc sybsystemprocs..sp_copy_all_qplans  
read_written by proc sybsystemprocs..sp_set_qplan