SQL Temporary Table

Hi

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!

Sagar
sagarhAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bhavesh ShahLead AnalysistCommented:
Hi,

can you share your procedure??
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.