DiamondEagle
2013-03-26 07:33:17 UTC
I've created a SSIS package in the SQL Business Intelligence
Development Studio which contains a Data Flow Component. In that
component I've added some OLE DB Source items which connect to a MSSQL
2008 R2 database and run several SQL SELECT queries. I've also added a
Flat File Destination item for each of those OLE DB Source items. The
data selected in each of the OLE DB Source items is written to a text
file by the corressponding Flat File Destination item. So far so good
and the text files (.csv) are created successfully.
I now want to create a separate ".DONE" text file when each of the
.csv files is successully created. How can I do this? I specifically
only want the .DONE files to be created if the corresponding .csv file
is successfully created.
The content of each .DONE file is not important - I'll probably just
print the output of a "SELECT COUNT(id) FROM MyTable;" query in those
.DONE files.
How do I create the ".DONE" file for each of the .csv files?
Thanks.
Development Studio which contains a Data Flow Component. In that
component I've added some OLE DB Source items which connect to a MSSQL
2008 R2 database and run several SQL SELECT queries. I've also added a
Flat File Destination item for each of those OLE DB Source items. The
data selected in each of the OLE DB Source items is written to a text
file by the corressponding Flat File Destination item. So far so good
and the text files (.csv) are created successfully.
I now want to create a separate ".DONE" text file when each of the
.csv files is successully created. How can I do this? I specifically
only want the .DONE files to be created if the corresponding .csv file
is successfully created.
The content of each .DONE file is not important - I'll probably just
print the output of a "SELECT COUNT(id) FROM MyTable;" query in those
.DONE files.
How do I create the ".DONE" file for each of the .csv files?
Thanks.