sql server - Physical location of FILESTREAM data -
How can I know the physical location (so I can see it in Windows Explorer) a FILESTREAM
Data that I have just put in DB?
There is an option for this: Method PhysicalPathName (). If you are on SQL Server 2012 or above, this code will work for you:
SELECT stream.PhysicalPathName () as the 'path' media option (QUERYTRACEON 5556)
For SQL Server 2008/2008 R2, you must enable Trace Flag 5556 for the full example:
DBCC transceans (5556, -1) GO
or for the specific connection in which you are calling the PhysicalPathName () method:
DBCC TRACEON (5556, -1) GO
< / Pre>
Comments
Post a Comment