How to mimick Oracle Materialized Views on MS SQL Server?

前端 未结 2 686
一个人的身影
一个人的身影 2021-01-11 20:00

Application connected to MS SQL Server will create views where a single row result is an analysis including aggregations of 1-10k records. The applicable criteria across the

相关标签:
2条回答
  • 2021-01-11 20:50

    You can use Indexed views for this.

    Read here for SQL 2005: http://msdn.microsoft.com/en-us/library/dd171921.aspx

    Read here for SQL 2008: http://msdn.microsoft.com/en-us/library/dd171921.aspx

    0 讨论(0)
  • 2021-01-11 20:54

    Materialized views are not same as indexed views. MS SQL server indexed views have multiple limitations such as use of outer joins, aggregates and common table expressions.

    0 讨论(0)
提交回复
热议问题