2012年9月26日

SQL脚本获取指定数据库的所有用户表记录数

摘要: set nocount onif object_id(N'tempdb.db.#temp') is not null drop table #tempcreate table #temp (name sysname,count numeric(18))insert into #tempselect o.name,i.rowsfrom sysobjects o,sysindexes i where o.id=i.id and o.Xtype='U' and i.indid<2select count(count) 总表数,sum(count) 总记录数 fr 阅读全文

posted @ 2012-09-26 09:55 宋海鹏 阅读(473) 评论(0) 推荐(0) 编辑

导航