Change the logical name of MSSQL database/transaction log files

When a database backup is restored in MSSQL, the physical filenames can be amended during the restore process but the logical names for the source database and transaction log files are kept. It is a simple step to amend these however… First, find the current names of the files where <database_name> is the name of the restored DB. SELECT database_id, […]