将多个数据库合并到单个数据库中 [英] Merge Multiple Databases into a Single Database

查看:199
本文介绍了将多个数据库合并到单个数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,我必须创建一个具有基本模式的单个数据库。这个数据库将会很大(100GB以上),并且将用作数据仓库。现在,这个数据库的创建目前通过C#代码以一次命中的方式执行;从多个不同的来源提取数据。由于数据量庞大,此创建会导致一些问题。已经决定,而不是一次创建一个单一的数据库;到

All, I have to create a single database which has a basic schema. This database is going to be large (100GB plus), and is to be used as a data warehouse. Now, the creation of this database is currently being performed in 'one-hit' through a C# code; pulling data from a number of different sources. Due to the sheer volume of data, this creation is causing some problems. It has been decided that instead of creating a single database in one go; to


  1. 创建几个包含核心数据表的较小数据库。

  2. 将较小的数据库合并到单个大型数据库。

  3. 创建模式/添加相关限制。

两次。

1。什么是合并多个数据库(具有相同的模式/表结构)的最佳方法?

2。是否有更好的方法来创建此数据仓库(超大型数据库)?

感谢您的时间。

推荐答案

您的第一个问题:您已经提到了相同的模式和表结构,在这种情况下,它简单地将数据从一个数据库表另一个(即更大的DB)。因为这必须确保

for your first question : You have mentioned identical schema and table structure, in that case, its simply moving of data from one DB table (i.e smaller DB) to another (i.e larger DB). for this have to ensure

1)没有重复的数据(至少在PK字段中)

1) there was no duplicate of data ( at-least in PK field )

2)为sql server将数据从一个数据库移动到另一个数据库

2) move data from one db to another for sql server refer

将数据从一个数据库传输到另一个数据库

这篇关于将多个数据库合并到单个数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆