Hi, Can you help me please? I want to restore a database (from an encrypted .bak file) - but *not* over the live original if you take my meaning. Encryption is the standard AES-256 that comes with Sql Server 2014 btw. I don't want the original touched/altered in any way. I would like to capture a success message if possible.I can extract the physical device name of the database in question using the following code:[code="sql"]SELECT physical_device_name, *FROM msdb.dbo.backupmediafamilyWHERE media_set_id =(SELECT TOP 1 media_set_idFROM msdb.dbo.backupset WHERE database_name='MyDatabase'AND type='D'ORDER BY backup_start_date DESC)[/code]I would like if the newly restored database was rename to something different than 'MyDatabase' (as shown above) and has different logs than the original. If possible, and capture a success message when restored.Thanks for any approaches,J.
↧