简体   繁体   English

将数据从SQL Server 2008 DB传输/转换到另一个

[英]Transfer/Transform Data From SQL Server 2008 DB to Another

I have rewritten an old program and designed a new database for it. 我重写了一个旧程序,并为此设计了一个新数据库。 I need to transfer the old data to the new database. 我需要将旧数据传输到新数据库。 The new database has a new schema, so I will have to manipulate much of the data that is going to be transfered. 新的数据库具有新的架构,因此我将不得不操纵将要传输的许多数据。

I have thought about writing a console app with 2 linq to sql contexts, one for each database and coding the transformation logic and the inserts. 我曾考虑过编写一个控制台应用程序,其中包含2个linq到sql上下文,每个数据库一个LINQ上下文,并对转换逻辑和插入代码进行编码。

I have also thought about using SSIS, but I have never used it before. 我也曾考虑过使用SSIS,但以前从未使用过。

Is SSIS suited for this sort of thing? SSIS是否适合这种情况? Where can I learn how to do this in SSIS? 我在哪里可以了解如何在SSIS中执行此操作?

I would go with the SSIS. 我会选择SSIS。 It is an ETL tool (which is what you are doing). 这是一个ETL工具(您正在做什么)。 Plus, you learn something new. 另外,您还将学到一些新东西。

Here is some great SSIS content 这是一些很棒的SSIS内容

What are the recommended learning material for SSIS? 推荐的SSIS学习材料是什么?

It can and is suited for this but if you haven't used it the learning curve is a little steep and setup / config can be a bit obtuse. 它可以并且适合于此,但是如果您不使用它,则学习曲线会有些陡峭,并且设置/配置可能有点钝。

If you are familar with Linq then I would go that route before trying to learn SSIS especially if this is a one time thing and time is a factor. 如果您熟悉Linq,那么在尝试学习SSIS之前,我会先走那条路,特别是如果这是一次性的事情并且时间是一个因素的话。

There is also the import and export wizard in SQL Server (uses SSIS) and you can setup straight copies from one table to another and / or custom sql statements. SQL Server中还有导入和导出向导(使用SSIS),您可以设置从一个表到另一个表和/或自定义sql语句的直接副本。 This should work for fairly simple conversions. 这应该适用于相当简单的转换。 For transformations that require more advanced logic it won't work. 对于需要更高级逻辑的转换,它将不起作用。

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

相关问题 从一个DataBase(sql server 2008)到具有不同架构的另一个db(sql server 2008)的传输数据的最佳方式 - The Best Way For Transfer Data From One DataBase (sql server 2008) To Another db(sql server 2008) With Different Schema 如何将数据从Microsoft Access传输到SQL Server 2008? - How to transfer data from Microsoft Access to SQL server 2008? 将记录和所有相关数据从一个SQL Server传输到另一个 - Transfer a record and all dependent data from one SQL Server to another 要将数据从sql server数据库传输到同一数据库的另一个副本 - To transfer data from sql server database to another copy of the same database 使用C#将数据从SQL Server 2008传输到MySQL Workbench - Transfer data from SQL Server 2008 to MySQL Workbench using C# EF Core 无法将数据从旧数据库传输到新 SQL Server 数据库中 - EF Core Fails to transfer data into new SQL Server DB from old one 将数据从SQL Server传输到MySQL - Transfer data from SQL Server to MySQL SQL数据从本地服务器传输到实时服务器 - SQL data transfer from local to live server 从Excel导入数据到Sql Server 2008#2 - Import Data from Excel to Sql Server 2008 #2 从C#发送Unicode字符串到SQL Server 2008 DB - Send Unicode String From C# To SQL Server 2008 DB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM