简体   繁体   English

如何从另一个数据库的备份创建一个新数据库,保持原始数据?

[英]How can I create a new database from a backup of another database, keeping the original in tact?

I am using SQL Server Express 2008, and I would like to create a completely new database using the backup of another database, but I don't want to overwrite the original database or change it's name. 我正在使用SQL Server Express 2008,我想使用另一个数据库的备份创建一个全新的数据库,但我不想覆盖原始数据库或更改它的名称。 I have read this post: Creating new database from a backup of another Database on the same server? 我读过这篇文章: 在同一台服务器上从另一个数据库的备份创建新数据库? but have researched the suggestion and it appears to replace the original database which I don't want to do. 但已经研究了这个建议,它似乎取代了我不想做的原始数据库。

Thanks. 谢谢。

when you restore the database you have the possibility to write a name, you are not forced to restore on an existing database. 当您还原数据库时,您可以编写名称,您不必在现有数据库上进行还原。 You can change the name of the file too.... 您也可以更改文件的名称....

If you have special rules, you can still create an empty database then restore your database on that empty one. 如果您有特殊规则,您仍然可以创建一个空数据库,然后在该空数据库上恢复数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server 2005-如何为数据库一次备份创建新的备份集 - SQL Server 2005 - How can I create a new backup set for a one off back up of a database 如何在不影响原始数据库的情况下从现有数据库还原和现有备份到新数据库? - How to restore and existing backup from an existing database to a new one without affecting the original? 如何为数据库创建备份 - How to create a backup for database 从同一服务器上另一个数据库的备份创建新数据库? - Creating new database from a backup of another Database on the same server? 如何从Oracle中的另一个数据库中创建一个表作为select? - How can I create a table as a select from another database in Oracle? 如何使用新值加上数据库中的原始值更新数据库字段 - How can I update my database field with a new value plus the original value in database 如何使用来自 Java 字符串变量的参数在我的 SQLite 数据库中创建一个新表? - How can I create a new table in my SQLite Database using a param from a Java String variable? 如何从sqlexpress备份数据库 - how to backup database from sqlexpress 如何将远程 SQL Server 数据库备份到本地驱动器? - How can I backup a remote SQL Server database to a local drive? 如何从Oracle数据库备份选定的过程或函数 - How I can take backup of selected Procedures or Functions from Oracle database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM