SolvedPrivate

SSIS :: Copy Data from source to Destination Using SSIS

Posted on 2013-02-05
5
37 Views
Last Modified: 2016-02-10
Hi Experts,

I have two databases in  same server(sql server 2008). I need to copy only partial data
from some  around 20 tables in source and copy it to destination  tables  using SSIS.

Ex When emp table from source has 1000 rows i only need to copy 100 rows into destination emp table using a filter condition.  When using import & export wizard , i am not able to apply filters.
0
Comment
Question by:B_Pati
[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
  • 3
5 Comments
 
LVL 14

Assisted Solution

by:Christopher Gordon
Christopher Gordon earned 250 total points
ID: 38856775
There may be an easier way to to this, but you could create a view for each table you want to copy; somthing like "select top 100 * from your table".  

Then use the view as the source in the import & export wizard instead of the table.
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 250 total points
ID: 38858400
Using that Import/Export wizard, you have the option to save the SSIS package that gets generated.  It's a checkbox in one of the last screens.  So save it, then open it in BIDS and customize the queries as per your requirements.

I've explained this method in more detail in the following article: Importing Excel Data Using Integration Services
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 38877082
Would you mind explaining that B-grade?
Also see http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26
0
 
LVL 1

Author Comment

by:B_Pati
ID: 38877124
Hi ,
I had to use Slowly changing Dimension transformation  Control to complete my task. The link you provided  helped me as a starting point.
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 38879567
Thanks for the feedback.  I fail to see how the SCD component would help you with your request, in fact I never use that component because it has some annoying limitations.  But okay, if you got it to work for your scenario, all the better!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

737 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