查询数据库db1中所有的用户表 use db1 go select * from sysobjects where type = 'U' 系统表的个数 select count(*) from sysobjects where type = 'S' 存储过程:type = 'P' 视图: type = 'V' |
查询数据库db1中所有的用户表 use db1 go select * from sysobjects where type = 'U' 系统表的个数 select count(*) from sysobjects where type = 'S' 存储过程:type = 'P' 视图: type = 'V' |