Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

SSMS can it use records from the last query without refreshing and hitting the database anew...?

I was just wondering. I have been hitting a database pretty hard for the last few days and wondered if ..... like Crystal Reports....does SSMS allow you to use the SAVED DATA or the CACHED DATA in memory from the last time the Report/Query in this case was run.

I just pulled 1 million records in 12 minutes. Now I have to limit the records again in SSMS. I was wondering if I can use what was cached to filter the records out again this time with what I had already hit.....? Is this possible.
0
Fletcher Burdine
Asked:
Fletcher Burdine
  • 2
2 Solutions
 
Fletcher BurdineTableau Trainer & Consultant Sales Exec.Author Commented:
Why would you remove that. The question was does SSMS have a feature like Crystal Reports Use Saved Data feature from the last time the report was refreshed.

My question was directed to SQL functionality not Crystal Reports. CR was just a reference...?
0
 
vastoCommented:
SSMS doesn't support this. It is used for on the fly scripts. Best approach will be if you insert the result into a temp table and then run the queries against this table.
0
 
DcpKingCommented:
vasto is correct ...... but know also that if you pull your million records and it takes 12 minutes you can run the same query again and it'll be a lot faster the second time ... because SQL Server caches queries and, to some extent, their results.
0
 
Fletcher BurdineTableau Trainer & Consultant Sales Exec.Author Commented:
Not abandonded just got busy thank you. sorry for the delay.
0
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

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

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