아래 쿼리로 확인하여 미사용 개체의 경우 DROP한다.SELECT A.*FROM SYS.TABLES AS ALEFT JOIN ( SELECT referenced_entity_name FROM sys.sql_expression_dependencies AS sed INNER JOIN sys.objects AS o ON sed.referencing_id = o.object_id ) AS B ON A.[NAME] = B.referenced_entity_nameWHERE B.referenced_entity_name IS NULL AND A.type = 'U'