Using SQL Server Management Studio 2008, right-click on your database, select Reports then Standard Reports then choose Index Physical Statistics. This report will show fragmentation details for all ...
SELECT --QUOTENAME(OBJECT_SCHEMA_NAME (OBJECT_ID))+'.'+QUOTENAME(OBJECT_NAME(OBJECT_ID)) as TableName, index_id, idx.name, index_type_desc,index_level, --avg ...