Mega Code Archive
Categories
/
MSSQL Tutorial
/
System Tables Views
Returns space usage information
7> SELECT name = CONVERT(CHAR(30), o.name), rows, dpages, o.id, type 8> FROM sysindexes i JOIN sysobjects o ON o.id = i.id 9> WHERE o.id < 100 AND (indid = 0 OR indid = 1) 10> GO 1> 2>