File size: 519 Bytes
81a0350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SELECT 	
"    t.NAME AS TableName,"	
    p.rows AS RowCounts	
FROM 	
    sys.tables t	
INNER JOIN      	
    sys.indexes i ON t.OBJECT_ID = i.object_id	
INNER JOIN 	
    sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id	
WHERE 	
    t.schema_id = SCHEMA_ID('dbo') AND	
    i.index_id < 2	
ORDER BY 	
    t.NAME	
TableName	RowCounts
cal	31284301
dates	218786
ddate	804
dim	21299326
fsnds	552
num	328405295
pre	229500266
ren	20760217
sub	634310
tag	38168186
txt	39230531