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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:35:41+00:00 2026-05-27T13:35:41+00:00

Here’s my scenario: User inputs date range. Stored Procedure runs, which populates other tables

  • 0

Here’s my scenario:

User inputs date range. Stored Procedure runs, which populates other tables based on dates. User can then click a button to view these tables (another SP which selects from the tables).

Issue:

There are multiple users. Each users needs to be able to have their own tables, so to speak, because date ranges can be different. Right now, user 1 runs SP which populates table for dates A and B. Then user 2 runs SP which populates table for dates C and D. Now user 1 goes and clicks view button, expecting the data for dates A and B but what happens is data for C and D shows up because the last user who ran the SP used dates C and D.

How can I keep the data separate/local for each user?

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-27T13:35:42+00:00Added an answer on May 27, 2026 at 1:35 pm

    If you really need to store the query results, then you need to key the result set, either on the user, or generating a scenario ID each time the user runs the report.

    The simplest approach is to just run the query as a report and not store the results. Recalculate the output and just dump it each time the user runs the report (i.e. don’t
    store ther results).

    If you do need to store the results and each user only needs to work with one date range at any given time, then the table can be annotated with a user ID.

    If a user can work with more than one scenario, then there needs to be another control table with the scenarios for each user. When the user does a run then a new scenario ID is genereated. You will need a screen to allow users to select the scenario in this case, and probably some means of cleaning out obsolete ones.

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

Sidebar

Related Questions

here is the scenario 1: user starts to type some word, autocomplete engine shows
Here's my scenario - I have an SSIS job that depends on another prior
Here is my code, which takes two version identifiers in the form 1, 5,
Here is the scenario: I'm writing an app that will watch for any changes
Here's my scenario. I've got SharePoint 2010 running on one server, with an SQL
Here's my procedure: DROP PROCEDURE IF EXISTS `couponExpires`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `couponExpires`(IN couponID BIGINT,
Here is what is supposed to happen: The moment the user chooses an option
Here's the flow that I am trying to achieve: 1) User uploads an audio
Here a simple question : What do you think of code which use try
Here's the scenario: I have a local git repository that mirrors the contents of

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.