[SQL Server] Afficher la table source du problème d'intégrité

-- =============================================

-- Author:      Zouhaier KHARROUBI

-- Create date: 05/05/2019

-- Description: Afficher la table source du problème d'intégrité de données

-- =============================================

SELECT T1.allocation_unit_id,OBJECT_NAME(T2.object_id)AS table_name, T3.nameASfilegroup_name,

T1.type_descAS allocation_type, T1.data_pages, partition_number

FROMsys.allocation_unitsAS T1

JOINsys.partitionsAS T2 ON T1.container_id = T2.partition_id

JOINsys.filegroupsAS T3 ON T3.data_space_id = T1.data_space_id

WHERE T1.allocation_unit_id IN(72057612234719232, 72057612268273664)

-- récupérer les numéros dans le journal des logs de SQL Server

ORDERBY T1.allocation_unit_id