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 6335731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:54:48+00:00 2026-05-24T18:54:48+00:00

Once the data is imported in a Staging table through Bulk Insert, then I

  • 0

Once the data is imported in a Staging table through Bulk Insert, then I need to do two steps:

  1. Transformations
  2. Insert/Update in Main table

Is the JOINS are the best tool OR there is something quicker/more efficient to perform these tasks?

  • 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-24T18:54:49+00:00Added an answer on May 24, 2026 at 6:54 pm

    I would probably do something like this:

    • make your transformations on that staging table (add additional columns as needed etc.)
    • do the INSERT/UPDATE into the actual data table using the SQL Server 2008 MERGE command which is ideally suited for just this – update some existing rows, insert some new rows (and possibly delete some old “orphaned” rows). It’s a single command which can handle just about all insert, update, delete scenario in a single call

    See some great articles on how to use the MERGE command:

    • Using SQL Server 2008’s MERGE statement
    • SQL Server – 2008 – Introduction to Merge Statement – One Statement for INSERT, UPDATE, DELETE
    • Merge Statement in SQL Server 2008
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table of data that gets update once a week. I then
i am updating record through jquery, and once data is updated how can one
Im tring to pull data once from Mysql into c. Then create an NUMPY
I'm reading in a file and sending the data (once encrypted) to a dictionary,
I have a web scraping script that gets new data once every minute, but
What's the best way to retrieve huge data (only once when you create a
I once read about an open source database for postal codes with geolocation data
I'm fetching data from all 3 tables at once to avoid network latency. Fetching
My program is downloading data from a server, once he received all the data,
Is the memory from primitive data types (int, char,etc) immediately released once they leave

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.