October 27, 2008 at 1:10 pm
Is it possible to have a view that does not refresh on ever request, but refresh only when the data is updated. Is this possible?
October 27, 2008 at 1:32 pm
A view doesn't store data. It's just a saved select statement. When you query a view, part of the parsing and binding that occurs replaces the view's name with the select statement contained within the view.
It is possible to index a view, in which case the data gets persisted and updated only when the tables change. The indexed view does put an overhead on the tables and there are a lot of restrictions.
What are you trying to do? What's the basis of the question?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply