Solved

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

Posted on 2013-11-01
6
223 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
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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Generate Scripts Fails 5 36
SQL View nearest date 5 38
While in ##Table - Help 4 17
SQL Select to Group and Filter Data 5 15
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

832 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