Hi marcmc,
I published cobol and C code to achieve what you are asking for....and much
more....
The reason I published it is that MSFT are dropping embedded SQL in C in
2005 so it cannot be taken forward....but all the ideas in the code work. I
have implemented them in many places.....
http://www.peternolan.com/Default.aspx?tabid=57 You can always use what is there and write it in another language.
If what you really need is the ability to get the data out of a source
system incrementally (which is a different problem) and the source system
does not allow you to get incremental extracts my company provides free
utilities on win2000 (plus source code). One of them is a 'delta generation
utility' which will compare two files and generate the deltas....you can
read about it here....
http://www.instantbi.com/Default.aspx?tabid=30 under
IDW utilities.....this way you can detect changes to files and just pass the
changes through to your ETL subsystem.....another utility will detect if the
row already exists in the target table and delete it so that when the row is
loaded the loader does not crash with a constraint violation....
Best Regards
Peter Nolan
www.peternolan.com [quoted text, click to view] "marcmc" <marcmc@discussions.microsoft.com> wrote in message
news:007F3504-1E51-46CA-AFB5-FA3999F4D41A@microsoft.com...
>I have never done it before.
>
> By the term incremental, I mean that I have a fact table and each day I
> want
> to add records to it that do not already exist in the table. I do not want
> to
> truncate and do a full load each day. There are millions of rows. I am
> already thinking about Last_RunDate_ID fields etc
>
> What is the best approach to thinking about/coding this?
> Any methodologies out there?
>