Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Flag Rows as imported after data is inserted into destination table

$
0
0

Hi All,

I have an excel files which I am importing into a staging table with added columns of datatime and importedflag.

I have then written SSIS package to import the data from staging table into the database.

Based on the import done I want the importedflag to be set to one for that particular row.

E.g

Data in staging table after importing from excel file is as follows

column1               column2                importeflag

1                             abcd

1                            edfg

3                             hijk

4                             xyz

SSIS package runs and import 3 rows and is not able to import the 4th rows so after the package has finished data in staging table so be as follows:

column1               column2                importeflag

1                           abcd                           1

1                           edfg                           1

3                          jkwer                          0

4                          xyz                             1

Thanks in advance.

Aash.


Aash


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>