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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Refresh Index views on demand

Author  Topic 

syscents
Starting Member

4 Posts

Posted - 2009-11-28 : 08:57:23
I want to create an indexed view because I have a complex query that spend some seconds. But I have an issue. I don't want to update data when some row is inserted. No. I want to force the refresh of the indexed view when I want (the same behaviour than materialized views in Oracle).

Does somebody know if it's possible? What's the solution?

Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-11-28 : 13:33:41
can i ask need of refreshing? will condition inside view change?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-28 : 13:53:55
You consider replication or database snapshots.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

syscents
Starting Member

4 Posts

Posted - 2009-11-28 : 20:37:23
That's because I have a Window update at night and I don't want that every insert force the refresh of the view. That's because I think every insert-update would spend a few seconds because there is some joins in the sql query. I don't know if the optimizer would calculate only that row or would generate all the view again...

Do you know?
Go to Top of Page
   

- Advertisement -