SolvedPrivate

SSIS :: Copy Data from source to Destination Using SSIS

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

930 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

14 Experts available now in Live!

Get 1:1 Help Now