Downsides to “WITH SCHEMABINDING” in SQL Server?

后端 未结 10 761
天命终不由人
天命终不由人 2021-01-31 01:20

I have a database with hundreds of awkwardly named tables in it (CG001T, GH066L, etc), and I have views on every one with its \"friendly\" name (the view \"CUSTOMERS\" is \"SELE

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 02:20

    this seems like a downside to me (#'s are mine):

    Cannot create index on view "###.dbo.###" because it uses a LEFT, RIGHT, or FULL OUTER join, and no OUTER joins are allowed in indexed views. Consider using an INNER join instead.
    

    I kinda need my LEFT joins. This SO question is relevant.

提交回复
热议问题