Solved

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

Posted on 2013-11-01
6
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 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 250 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 250 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

710 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