|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 10:32 AM
Points: 127,
Visits: 122
|
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 2:42 PM
Points: 877,
Visits: 1,158
|
|
Thanks for sharing.
Thanks
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Monday, April 29, 2013 11:13 AM
Points: 62,
Visits: 48
|
|
There is faster way how to determine total number of rows in table, then in all tables as well. If you have primary key on your table (so it doesn't works that simply for heap tables) you can just simply select rowcnt column on sysindexes where id = objectid('yourtable') and indid = 1.
This gives you number of rows in your primary key, which is the number of rows in your table. Subsequently if all tables in your database has a PK, just simply sum all rowcnt columns in sysindexes table.
Jan
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: 2 days ago @ 6:15 AM
Points: 11,
Visits: 327
|
|
Hi,
See if this is something along your lines of DBA information/metadata also. You may be able to use/share the code.
Oliver
|
|
|
|