Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 377625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:42:53+00:00 2026-05-12T14:42:53+00:00

I am running a SSIS package to load say a million rows from a

  • 0

I am running a SSIS package to load say a million rows from a flat file, which uses a script task for complex transformations and a SQL Server table destination. I am trying to figure out the best way (well, ANY way at this stage) to write out to a different table the row count (probably in multiples of 1000 to be more efficient) DURING the data flow processing. This is so that I can determine the percentage of progress throughout a task that might take a few minutes, simply by querying the table periodically.

I can’t seem to add any SQL task into the flow, so I’m guessing the only way is to connect to the SQL database inside the .NET script. This seems painful and I’m not even sure it is possible. Is there another more elegant way? I’ve seen reference to “Rows Read” performance counter but not sure where I access this in SSIS and still not sure how to write it to a SQL table during the Data Flow processing.

Any suggestions appreciated.

Glenn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:42:54+00:00Added an answer on May 12, 2026 at 2:42 pm

    OK, had some success at last…. 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 gets executed every 1000 rows, and successfully updates the table. The row already existed as it gets created in the control flow at the start of the package, and updated again in the control flow at the very end with final rowcount and 100%.

    Thanks for all your suggestions guys.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running an Execute SQL Task statement in my SSIS package. The Execute
I'm running an SSIS package from an external scheduler (Control-M), using dtexec. I'd like
I'm running an SSIS package that I made a few months ago, and ran
We have been running an SSIS package successfully in production now for 3 weeks,
I'm getting this error when running an SSIS package through SQL Agent Failed to
I have a job on SQL Server 2005 running a ssis package. The package
I'm running a fairly substantial SSIS package against SQL 2008 - and I'm getting
I need to load and execute SSIS or DTS packages ASYNCHRONOUSLY from ASP.NET C#
I am running SSIS from a C# application. I would like to run the
I'm pulling in data from a flat file into a SQL Server 2008 table.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.