SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


pls help: how to backfill the data since some day


pls help: how to backfill the data since some day

Author
Message
chliu
chliu
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 1
hello,

I am very new to SSIS. I just want write a IS package that can integrate the data from source since the date in the destination table. For example, if the latest data date is today-9, then it will integrate the data from today-9 from source table to the destination. What should I do, please guide me in detail steps. I had figured out a data flow task that can integrate all data from OLE source to dest.

thanks

Liu
Daniel Bowlin
Daniel Bowlin
SSCertifiable
SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)SSCertifiable (7.9K reputation)

Group: General Forum Members
Points: 7932 Visits: 2629
I can think of two approaches.

First come up with a process to test the target for the last date loaded and then use that information to query the source appropriately.

Second build a logging mechanism that records the date(s) used in the last run. Then use that information to adjust your date (range) for the next load. Personally I like the logging approach for a variety of reasons.
--Only one or two rows to query to get your date range instead of an entire table.
--Logging can be useful for a lot of things outside of determining the next date range to use. Audits, results reporting, etc.
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: General Forum Members
Points: 61989 Visits: 13297
There's a great answer in this thread:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6c7a482a-59fc-4cc8-b8cf-fc02e7c79174/pls-help-how-to-backfill-the-data-since-some-day

;-)


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search