select "TABLE SCHEMA"= CONVERT(Varchar(20),s.name ), "TABLE NAME"= convert (varchar (50), o.name), "ROWS"=i.rows from sysobjects o, sysindexes i,sys.schemas s,sys.tables t where o.type = 'U' and o.id = i.id and i.indid in (0,1) and t.object_id = o.id and t.schema_id = s.schema_id order by i.rows desc
Hasilnya akan seperti ini :
No comments:
Post a Comment