Solved

SSIS Multiple Table Loads

Posted on 2013-12-17
4
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
How to increase the row limit in Jasper Server.
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  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

752 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