Solved

SSIS Multiple Table Loads

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

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 66

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

615 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