|
Posted by Hugo Kornelis on 02/02/06 23:19
On 31 Jan 2006 17:44:29 -0800, Doug wrote:
>Hello,
>
>When do you prefer a view?
>
>Thanks!
>doug
Hi Doug,
That's a pretty broad question!
In addition to Joe Celko's list, here are some more:
* If the same logic has to be used in many different queries, a regular
view is great.
* If a lot of queries use aggregated data of a large table, an indexed
view can speed up performance tremendously.
This is just of the top of my head. I'm sure there are more situations
where a view is a good solution.
--
Hugo Kornelis, SQL Server MVP
[Back to original message]
|