Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
scelamko
Constraint Violating Yak Guru
309 Posts |
Posted - 2006-03-09 : 10:10:39
|
| Guys,Is there any system table where count of all the rows from the user defined tables in the database.I am expecting an output something like thisNAME COUNT______________________EMPLOYEE 20000DEPARTMENT 30000Thanks |
|
|
JoeNak
Constraint Violating Yak Guru
292 Posts |
|
|
Srinika
Master Smack Fu Yak Hacker
1378 Posts |
Posted - 2006-03-09 : 11:11:38
|
| I got the following answer for the same issue some time backDBCC UPDATEUSAGE ('MYDB_Name')SELECT o.[name], i.rowcntFROM sysobjects oLEFT OUTER JOIN sysindexes iON o.[id] = i.[id]WHERE o.xtype = 'U' AND i.indid < 2ORDER BY o.[name] |
 |
|
|
|
|
|