Chinaunix首页 | 论坛 | 博客
  • 博客访问: 963672
  • 博文数量: 232
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2315
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 11:43
文章分类

全部博文(232)

文章存档

2009年(6)

2008年(22)

2007年(72)

2006年(85)

2005年(47)

我的朋友

分类: WINDOWS

2008-01-31 18:01:18

数据库的新建拷贝可以仅仅拷贝设计,而不拷贝文档的方式,但是如何做副本,也实现类似的功能了,可以参考

 

Creating a database replica (stub) that contains no documents

阅读(1871) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
 Technote (FAQ)
 
Problem
When creating a new copy of a database with File -> Database -> New Copy, there is an option to only copy the design and no documents from the source database.



When creating a new replica of a database with File -> Replication -> New Replica, there is no option like this. The replica stub that is created will not include any documents, but it will not allow administrators to make any modifications to the database design or the Access Control List (ACL).

Is it possible to create a replica of a database (not a replica-stub) without any documents.
 
Solution
To create a replica of a database without any documents do the following:

1. Create a replica with File -> Replication -> New Replica.
2. Select "Immediately" and click "Replication Settings..."



3. In the Replication Settings dialog box, under "Space Savers", enable "Replicate a subset of documents" and "Select by formula." Define a Form name which is not available in the database.



This "small" replica can now be customized (change the design or ACL settings) and send via mail for database-rollouts. Before going into production (i.e. start replication with the source database) do not forget to remove the replication formula.