select (selectcount(*) as 用户数据表 from 数据库名.dbo.sysobjects where xtype='u'and status>=0) as 用户数据表, (selectcount(*) as 用户存储过程 from 数据库名.dbo.sysobjects where xtype='P'and status>=0) as 用户存储过程, (selectcount(*) as 用户视图 from 数据库名.dbo.sysobjects where xtype='V'and status>=0) as 用户视图, (selectcount(*) as 触发器 from 数据库名.dbo.sysobjects where xtype='TR'and status>=0) as 触发器