Solved

SSIS Multiple Table Loads

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

How to increase the row limit in Jasper Server.
Outlook Free & Paid Tools
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

758 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

19 Experts available now in Live!

Get 1:1 Help Now