INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Incremental Load

Incremental Load

(OP)
Hi,

Am a newbie in SSIS and need help with following:

Have a load and the last step in the Control Flow I update LastImportDate in a Table

update ParamSettings set
value = convert(date,getDate(),120)
where ParamID = 1 and Parameter = 'LastImportDate'

Next time I run the SSIS package I want to check LastImportDate value in that table and only load Incremental data.

Source and destination databases are on different servers

Have tried with Lookup but canĀ“t understand how to check one cell for all rows in source table.

Have search google, but cant find any solution, I hope I have give enought info.

Thanks

Aikman

RE: Incremental Load

The simple way is something like that
in Data flow source you running SQL somthing like

select field1,
field2,
field3,
field4,
field5,
field6,
field7,
...........
fieldN
from sourceTabel

You need to change
to
Declare @LastImportDate date

select @LastImportDate = value
from ParamSettings
where where ParamID = 1 and Parameter = 'LastImportDate'

select field1,
field2,
field3,
field4,
field5,
field6,
field7,
...........
fieldN
from sourceTabel
where changeDate > LastImportDate

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close