Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 cached table

Author  Topic 

gavakie
Posting Yak Master

221 Posts

Posted - 2010-05-25 : 15:55:45
I have some large datasets for reports that just take a long time to run. I want to keep the results in a table that is populated nightly or weekly. How?

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-05-25 : 17:13:42
"How?" is ambiguous. Are you asking how to create the table or how to populate it nightly?
Go to Top of Page

naveengopinathasari
Yak Posting Veteran

60 Posts

Posted - 2010-05-26 : 07:54:57
You can write a scheduler and schedule as required (Run at Night Ones everyday).

In the Scheduler you can create a Table by <TableName> + Date and insert all the data into the table
so that you can use this table for your report.

Hope it suffice your requirement

Lets unLearn
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2010-05-26 : 07:57:21
SELECT *
INTO myCachedReport
FROM myseriouslycomplexjoin
WHERE ...

- Lumbago

My blog (yes, I have a blog now! just not that much content yet)
-> www.thefirstsql.com
Go to Top of Page
   

- Advertisement -