If you are using Enterprise Manager to restore this database then simply specify a NEW database name within "Restore database as" field in the restore database dialog box. On the Options tab enter new file locations for the database data files that will be created when you restore this database. Do NOT tick the force over existing database option, if you do NOT select this then SQL Server should not be able to overwrite any of your existing databases.
If you are using the RESTORE DATABASE command from T-SQL then once again specify a NEW database name. Also specify MOVE options to specify where you your current severs disk subsystems you want to located the new data files. See Books Online for more information on this (see the RESTORE DATABASE command).
For More Information
- Dozens more answers to tough SQL Server questions from Tony Bain are available here.
- The Best Microsoft SQL Server Web Links: tips, tutorials, scripts, and more.
- The Best SQL Web Links
- Have a SQL Server tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical SQL Server questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
This was first published in April 2003