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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:12:37+00:00 2026-05-15T20:12:37+00:00

I am working on a data warehousing project where several systems are loading data

  • 0

I am working on a data warehousing project where several systems are loading data into a staging area for subsequent processing. Each table has a “loadId” column which is a foreign key against the “loads” table, which contains information such as the time of the load, the user account, etc.

Currently, the source system calls a stored procedure to get a new loadId, adds the loadId to each row that will be inserted, and then calls a third sproc to indicate that the load is finished.

My question is, is there any way to avoid having to pass back the loadId to the source system? For example, I was imagining that I could get some sort of connection Id from Sql Server, that I could use to look up the relevant loadId in the loads table. But I am not sure if Sql Server has a variable that is unique to a connection?

Does anyone know?

Thanks,

  • 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-15T20:12:37+00:00Added an answer on May 15, 2026 at 8:12 pm

    I assume the source systems are writing/committing the inserts into your source tables, and multiple loads are NOT running at the same time…

    If so, have the source load call a stored proc, newLoadStarting(), prior to starting the load proc. This stored proc will update a the load table (creates a new row, records start time)

    Put a trigger on your loadID column that will get max(loadID) from this table and insert as the current load id.

    For completeness you could add an endLoading() proc which sets an end date and de-activates that particular load.

    If you are running multiple loads at the same time in the same tables…stop doing that…it’s not very productive.

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

Sidebar

Ask A Question

Stats

  • Questions 540k
  • Answers 540k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Answered my own question. I can access objects in app.cs… May 17, 2026 at 2:38 am
  • Editorial Team
    Editorial Team added an answer You would need to build with iOS 4 (NOT 3)… May 17, 2026 at 2:38 am
  • Editorial Team
    Editorial Team added an answer If you're just wanting to display graphics, check out the… May 17, 2026 at 2:38 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've just begun diving into data warehousing and I have one question that I
I am now working on a data transfer project under Linux. The Project Team
I'm getting my first exposure to data warehousing, and I’m wondering is it necessary
I have been working with warehousing for a while now. I am intrigued by
I'm working with data that is natively supplied as rational numbers. I have a
i am working on data manipulation using sqlite. how can i insert the datetime
I'm presently working with data in text files. I need to use algorithm called
I'm working with biological data - namely groups of genes. For example: group 1:
I am working on a data warehouse and looking for an ETL solution that
I am currently working on exposing data from legacy system over the web. I

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.