[SQL Server] Afficher le chemin d'un fichier sur le Filestream

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

-- Author:      Zouhaier KHARROUBI

-- Create date: 03/08/2019

-- Description: Afficher le chemin d'un fichier sur le Filestream

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

CREATE TABLE #TableFilestream

(

Document VARBINARY(MAXFILESTREAM NULL

)

SELECT Document.PhysicalPathName()AS PhysicalPathName_

,Document.PathName()AS PathName_

FROM #TableFilestream

OPTION (QUERYTRACEON 5556)/* C'est cette option qui permet d'afficher le chemin.

Par défaut elle est désactivée */