Simplifying Data Manipulation
Views can be used to simplify data access. Common queries that utilize complex joins, UNION
queries, and more involved SQL can be defined as views. This minimizes the amount of complex code that must be written or rewritten and provides a simple way of organizing your common data access.
SQL Server 2012 comes with a set of system views that demonstrate the views’ capability to mask complex queries and simplify data manipulation. These system views include catalog views, information schema views, and compatibility views. In many cases, the definition of these views is hidden, but some of them can be analyzed using the sp_helptext
system procedure. For example, sys.triggers
, a catalog view defined in SQL Server 2012, ...
Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.