--1、怎么样获取库中所有用户表的表名,表的个数select 表名=name from sysobjects where xtype='U' and status>=0
select 表的个数=@@rowcount
--2、怎么样获取表中字段的个数select 字段名=name from syscolumns where id=object_id('要查询的表名')
select 字段的个数=@@rowcount