ReportDr00
IS-IT--Management
Hello
I have to add or update records in the database, but using business tier of an application. I have a dataflow task that reads the data and stores it in record set destination and on control flow task i added for each loop to loop the recordset and with in for each loop i have script task that references the business tier of an application and opens the connection add or update the record and close the connection and does the same for rest of the records.
How could i open the connection only once and loop the records with in script task and add/update them in database and close the connection?
Thanks
I have to add or update records in the database, but using business tier of an application. I have a dataflow task that reads the data and stores it in record set destination and on control flow task i added for each loop to loop the recordset and with in for each loop i have script task that references the business tier of an application and opens the connection add or update the record and close the connection and does the same for rest of the records.
How could i open the connection only once and loop the records with in script task and add/update them in database and close the connection?
Thanks