如何从原始文件创建虚拟数据库 [英] How to create dummy database from original
本文介绍了如何从原始文件创建虚拟数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我们说我有罗斯文(Northwind)示例数据库.
现在,我想使用查询创建一个虚拟数据库.
有办法吗?
请考虑到我要使用查询的事实,告诉我解决方案.
许多战车.
<编辑-删除了喊叫>
Lets say I have the Northwind sample database.
Now I want to create a dummy database using a query.
Is there a way to do this?
Please tell me the solution considering the fact that I want to use a query.
Many tanks.
<Edit - Removed shouting>
推荐答案
复制数据库的最佳方法如下:
1)备份您的数据库.
2)恢复到新的数据库名称.
3)在所有表上执行truncate table [tablename]
.
4)缩小您的新数据库.
The best way to duplicate your database is the following :
1) backup your db.
2) restore to a new database name.
3) do atruncate table [tablename]
on all your tables.
4) shrink your new database.
这篇关于如何从原始文件创建虚拟数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文