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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:05:52+00:00 2026-05-23T08:05:52+00:00

I have a big stored procedure. It has multiple inserts into different tables. What

  • 0

I have a big stored procedure.
It has multiple inserts into different tables.
What I want to do is to pause stored procedure and ask user to confirm some stuff (Like do you like records that being inserted), if they click yes, I continue stored procedure and got to second table. It is Sql Server 2008 and asp.net front-end.
Thanks!

UPDATE: I need around 100 pauses. no other way than creating 100 sp?

  • 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-23T08:05:53+00:00Added an answer on May 23, 2026 at 8:05 am

    User interaction doesn’t belong in the stored procedure (SP). It belongs in the user interface. You need to handle all of that separately – if need be, write multiple stored procedures. Your UI can then ask for input, run a procedure, get results (if needed), ask for more input (based on previous results, if needed), run another SP, etc., passing the user input into the SPs as parameters if it’s needed by the SP.

    EDIT: Think of what you’re trying to do. A database server is designed to provide data, not the user interface. If you have multiple step procedures that require user input for those steps, you need to handle that in the user interface. The server can accept input through parameters that are passed from the user interface, and can provide results – that’s it. Each step of that process should be independent, and the UI should control the flow through those steps. The database has no business knowing anything about the user interface; the user interface is exactly what it’s called – the way to interact with the user.

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

Sidebar

Related Questions

I have a big stored procedure that I run. At the end its supposed
I have to do a big update script - not an SPL (stored procedure).
I have a big Oracle DB: 4+ GB of data, 200 tables, 1000+ stored
I have a mssql stored procedure question for you experts: I have two tables
I want to write a stored procedure that queries XML files after I have
How would you maintain the legacy applications that: Has no unit tests have big
I have a pretty big table where I want to get certain rows by
I'm trying to convert the permanent tables used in a stored procedure to global
i have a stored procedure that takes 2 parameters: ID and Date. when i
I have a big trouble with report services. I need to use a stored

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.