Solved

SSIS Multiple Table Loads

Posted on 2013-12-17
4
464 Views
Last Modified: 2016-02-10
I am in the process of creating a staging area for our BI Solution.
The problem I have is, I need to copy multiple tables from one Server to another.
Besides using SQL to copy tables from one Server to another, then creating a SSIS package.
Is there another way to do this in SSIS besides manually mapping each table?
0
Comment
Question by:aneilg
  • 2
  • 2
4 Comments
 
LVL 65

Assisted Solution

by:Jim Horn
Jim Horn earned 405 total points
ID: 39723792
You mean like, closing your eyes and using The Force?

Nope.  Every source-to-destination data flow in an SSIS package requires columns be mapped to each other.

One other possibility, if the tables are going to be created on the fly with the SSIS package, is instead of Data Flow tasks, use a SQL task that does a 'INSERT INTO new_table SELECT * FROM old_table', but then afaik the relationships and indexes will not be created in new_table.

Or, if the entire database can be created on the fly, just backup your db, then restore the backup onto the new server, then edit in the new database what you don't need.
0
 

Author Comment

by:aneilg
ID: 39723831
OK. Thanks.
Just thought I could use a script task and create the tables dynamically, then use Informaiton_Schema.Columns to build my tables.
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 405 total points
ID: 39723896
>could use a script task and create the tables dynamically, then use Informaiton_Schema.Columns to build my tables.
Probably, but that sounds like a wompload of work.  How 'dynamic' do you need this, i.e. would it work to just script out the table inserts, then execute the script.
0
 

Author Comment

by:aneilg
ID: 39723917
I think I’ll take your advise, just asking for trouble doing it dynamically. I'll use SQL to generate the SSIS package, this will do all the mapping for me. Then I can just tweak the package.

Thanks again.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question