OK, finally succeeded ... added a call to the following sub in the script component:
Sub UpdateLoadLog(ByVal Load_ID As Int32, ByVal Row_Count As Int32, ByVal Row_Percent As Int32, ByVal connstr As String) Dim dbconn As OleDbConnection Dim Sql As String Dim dbcomm As OleDbCommand dbconn = New OleDbConnection(connstr) dbconn.Open() Sql = "update myTable set rows_processed = " & Row_Count & ", rows_processed_percent = " & Row_Percent & " where load_id = " & Load_ID & " and load_log_type = 'SSIS'" dbcomm = New OleDbCommand(Sql, dbconn) dbcomm.ExecuteNonQuery() dbconn.Close() dbconn = Nothing dbcomm = Nothing End Sub
This runs every 1000 rows and successfully updates the table. The line already exists because it is created in the control flow at the beginning of the package and is updated again in the control flow at the very end with the final number of lines and 100%.
Thanks for all your suggestions guys.
source share