Hi
I am facing some problem while exporting the data from SQL to excel.
My package first truncates the old data from the destination table and then picks up new data from source and puts it again to destination table(which was truncated). And then it inserts the data in an excel file.
This package is scheduled to run everyday once at a particular time.
But what happens is, In my excel file, the rows are adding up.
Suppose the package exceuted today for the first time, the no. of rows in the excel file are 5.
On the next day, there will be a new set of rows in my excel file but the rows from previous day are also there. i.e the new set of rows begin after the 5th row from previous day.and it continuous this way.
What i want is to have only the fresh data in my excel file every day.
I dont want to have the rows from the previous day in my excel file.
I hope i made myself clear.
Can you help me with this???
Thanks!!!