Solved

SSIS Multiple Table Loads

Posted on 2013-12-17
4
437 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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 use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now