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

  • SEARCH
  • Home
  • 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 9009747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:16:51+00:00 2026-06-16T02:16:51+00:00

I have a dynamic excel sheet that’s connected to stock market prices. From a

  • 0

I have a dynamic excel sheet that’s connected to stock market prices. From a named range in this sheet, I want to trigger any row change to export selected columns as a new record in a database table.

This will be out for a lot of excel rows data changes that are to be inserted into a database table.

  1. What is best Technique for a robust and reliable connection?
  2. Any examples or tutorials for on change row exports to sql?
  • 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-06-16T02:16:53+00:00Added an answer on June 16, 2026 at 2:16 am

    There are several approaches you can take. You could set up a job to call your SSIS package to import your spreadsheet every X number of minutes or hours into a staging database table before going forth to a final table. The process of taking importing and adding new or updating existing information would then be performed using a SQL Task that applies a MERGE command, like that below. In this example the Row1 field is the unique value for each record (TestID is an autoincrementing primary key unique to the database table Tests). You could also use a combination of fields to define each record uniquely. While you did not request this, it is a good idea to include a history table to track changes and maintain traceability.

    MERGE dbo.Tests AS t
    USING (SELECT Row1, Row2 FROM dbo.Tests_import) AS s
    ON (t.Row1 = s.Row1)
    WHEN NOT MATCHED THEN
        INSERT (Row1, Row2, DateCreated) VALUES(s.Row1, s.Row2, GETDATE())
    WHEN MATCHED and s.Row2 <> t.Row2 THEN
        UPDATE SET t.Row2 = s.Row2, t.DateUpdated = GETDATE()
    OUTPUT $action, inserted.TestID, inserted.Row1, inserted.Row2, inserted.DateCreated, inserted.DateUpdated
    INTO dbo.Tests_History ([Action], fk_TestID, Row1, Row2, DateCreated, DateUpdated);  
    

    In the above example, the Tests_import table is the temporary staging table, the Tests table is the final import location and Tests_History tracks the history for each unique record. When the process is complete, then you can either delete the contents of Tests_import or set that as the first step applied in the SSIS package. This way you can compare the initial import with the final Tests table in case there are any issues prior to running the SSIS package again.

    Hope this helps.

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

Sidebar

Related Questions

I have a dynamic range in an Excel sheet. DATA_TABLE =OFFSET(DATA!$B$3,0,0,COUNTA(DATA!$B:$B)-1,0) I want to
I have an excel sheet that is loaded with a dynamic result set of
I have an excel sheet that is loaded with a dynamic result set of
I have been trying to create a dynamic range within excel that would include
I have dynamic listview on my android client app that receive data from remote
I have some dynamic buttons that look like this: <input type=button name=button id=button value=Click
We have dynamic ID's generated from a database like this: <input type=radio id=brand1 value=1>
I have created and Excel 2007 based dynamic charting application that that charts various
I have dynamic array filled with bytes, which are read from .raw file with
I have dynamic content in a div called txtresults like this: <div id=txtresults></div> This

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.