Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2013-11-01
6
Medium Priority
?
233 Views
Last Modified: 2013-11-18
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
Comment
Question by:ruavol2
  • 2
4 Comments
 

Author Comment

by:ruavol2
ID: 39617860
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
 
LVL 18

Assisted Solution

by:vasto
vasto earned 1000 total points
ID: 39617918
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
 
LVL 16

Accepted Solution

by:
DcpKing earned 1000 total points
ID: 39618268
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
 

Author Closing Comment

by:ruavol2
ID: 39656453
Not abandonded just got busy thank you. sorry for the delay.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question