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 |
|
oepirobo
Starting Member
36 Posts |
Posted - 2002-12-18 : 11:39:57
|
| Hi there.I was wondering if there's any statement that can get me the names of all the tables that currently have no rows.something like 'select * from systables where rowcount=0'Yeah I know there's no systables (or at least I've never seen it), but that's the general idea. |
|
|
Arnold Fribble
Yak-finder General
1961 Posts |
Posted - 2002-12-18 : 11:58:51
|
SELECT OBJECT_NAME(id)FROM sysindexesWHERE indid IN (0,1) AND rowcnt = 0ORDER BY OBJECT_NAME(id) |
 |
|
|
|
|
|