Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding Views
Message
From
08/11/2013 10:20:46
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01587551
Message ID:
01587558
Views:
41
Hi, Dmitry,

Brandon gave a terrific response on views. His point #3 is perhaps the biggest of all. Big conversions of legacy databases to new databases will often use views in the transition phase, and even beyond that. You'll also find them often in reporting applications.

Generally, what's stored in a view is just the SQL query itself, not the data.

Just wanted to add two additional things

First, in SQL Server (don't know about Oracle), you can't pass parameters to views. There are workarounds (sometimes using table-valued functions), though they tend to be a bit involved.

Second, there's one instance where a view actually "stores" data - a materialized view. It almost sounds like a contradiction in terms. It's not terribly common, but some people use them for fast retrieval of aggregated data. There are several requirements for a materialized view, so you won't seem them often.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform