Prevent SSIS for creating an empty csv file at destination
Asked Answered
S

1

0

I created a SSIS to export to a csv file I don't wan't my SSIS to create an empty file if there is no data.

How can I achieve this ?

Thanks,

Server answered 17/6, 2016 at 19:29 Comment(3)
Oh man I read this question wrong at first, haha.Barbuto
whats wrong on thisServer
Nothing, just skimming I saw the name of a terrorist group.Barbuto
R
0

Are you suggesting that when your project will create the CSV if there are no rows?

If that is the case - keep a row count.

If row count = 0 at the end the delete the file.

Roadway answered 20/6, 2016 at 8:21 Comment(3)
Yes that is the case.. But at what step i need to delete file and how.Server
When would you expect to delete the file? Surely at the stage where no rows could be written to it? Use the File System TaskRoadway
But i want to delete only empty files right. How i can mention condition at File System Task.Server

© 2022 - 2024 — McMap. All rights reserved.