๐ฉโ๐ป ๆฅ่ฉขๆๆTable็ญๆธ
USE [DB]
GO
SELECT O.NAME '่ณๆ่กจๅ็จฑ', P.ROWS '็ธฝๆธ'
FROM SYS.OBJECTS O INNER JOIN SYS.SCHEMAS S
ON O.SCHEMA_ID = S.SCHEMA_ID
INNER JOIN SYS.PARTITIONS P
ON O.OBJECT_ID = P.OBJECT_ID
WHERE (O.TYPE = 'U') AND
(P.INDEX_ID IN (0,1))
ORDER BY S.NAME, O.NAME ASC;
GO