Re: How to get the Database name from the backup file
(This is not the exact scenario. Using for simplicity.)
I have a directory of .bak files created from SQL Server1. I want to restore them to SQL Server2. How can I tell what was the database name on Server1? The actual database name, not the logical name and not the physical file names. So far it seems like I am dependant on the .bak file name being the database name. But would like not to depend on that.