用户表的个数
select count(*) from sysobjects where type = 'U'
系统表的个数
select count(*) from sysobjects where type = 'S'
存储过程的个数
select count(*) from sysobjects where type = 'P'
视图的个数
select count(*) from sysobjects where type = 'V'
建立一个数据库test_qa,在数据库设备test_qa_data上分配50M的数据空间,在数据库设备test_qa_log 上分配5M日志空间
create database test_qa on test_qa_data =50
log on test_qa_log =5
select count(*) from sysobjects where type = 'U'
系统表的个数
select count(*) from sysobjects where type = 'S'
存储过程的个数
select count(*) from sysobjects where type = 'P'
视图的个数
select count(*) from sysobjects where type = 'V'
建立一个数据库test_qa,在数据库设备test_qa_data上分配50M的数据空间,在数据库设备test_qa_log 上分配5M日志空间
create database test_qa on test_qa_data =50
log on test_qa_log =5

浙公网安备 33010602011771号