Skip to content

Instantly share code, notes, and snippets.

@kevriley
kevriley / standby_file_from_tlog.sql
Last active April 28, 2021 15:10
retrieve standby file and path from transaction log
/* ***************************************************************************************
retrieve standby filepath from tlog
credit for original idea is not mine, but I cannot find the original post any more
***************************************************************************************
https://rileywaterhouse.co.uk/where-is-the-standby-file
***************************************************************************************
*/
DECLARE @database sysname;
SET @database = N'AW';