SolvedPrivate

SSIS :: Copy Data from source to Destination Using SSIS

Posted on 2013-02-05
5
32 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SQL Server  2012 Release with lots of Enhancements in Database Engine functions, SSIS, SSRS and some of new services like Data Quality Server and Master Data Service. Of particular interest, and the focus of this Article is SSIS. So, time to elab…
Here's a requirements document template for an integration project (also known as Extract-Transform-Load or ETL) based on my development experience as an SQL Server Information Services (SSIS) developer over the years.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

11 Experts available now in Live!

Get 1:1 Help Now