DEFINITIONS

Definitions More Info.
Definition ID261
TitleSQL
CategorySCRIPT
Definitionunused tables kullanilmayan tablolar
Definition DescriptionSELECT OBJECT_NAME(i.[object_id]) AS [Table name] , CASE WHEN i.name IS NULL THEN '' ELSE i.name END AS [Index name] FROM sys.indexes AS i INNER JOIN sys.objects AS o ON i.[object_id] = o.[object_id] WHERE i.index_id NOT IN ( SELECT s.index_id FROM sys.dm_db_index_usage_stats AS s WHERE s.[object_id] = i.[object_id] AND i.index_id = s.index_id AND database_id = DB_ID() ) AND o.[type] = 'U' ORDER BY OBJECT_NAME(i.[object_id]) ASC;
RecordBycunay
Record Date11-10-2012 16:26:09
Düzenle
Kopyala
Sil