SQL Server: Add existing mdf with new Database-name
Posted on 2013-06-10
we are using SQL Server 10.0.5500 on a SBS 2008 R2.
We made some backups of the *.mdf and *.ldf Files within the DATA-Folder of the SQL-Server. Now we need some of the data back and don't want to destroy the running system/database.
So we need to add the database to the server management studio and change the name so the import won't overwrite the existing (and running) database.
How do we do this?
Is there any possibility to create a new databasemodule? If so, we can add the database to the new one and create some sql-statements to change/add the running database.
Any help ist appreceated.
P.S. We also could create a VM and import the data to the VM-system. After that we can create the sql-actions, but this seems to be a lot more work ...