• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

SQL Temporary Table


I have a stored procedure that when it is run on a schedule it runs about 25 inserts into a table which are various sales calculations that take about a minute to run - all works well.....

I also have a report that reads data from this table to present on our intranet - my problem is that when the stored procedure is being run the report only gets the columns populated in the table and hence some will be blank and users have to refresh the page several times to get the data fully.

Is their a way to run the stored procedure and store the data temporarily elsewhere and write to the table in one go? Hopefully you understand what I mean by this or am trying to do.....

Thanks for any help!

1 Solution
Aaron ShiloChief Database ArchitectCommented:
use a temp or staging table for the process of inserts and when its done move all the rows in one batch to the permenant table.

Bhavesh ShahLead AnalysistCommented:

can you share your procedure??
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now