April 2, 2019 at 12:34 pm
Not able to create index on below schema binding view.It is created from another view(v_prod_manu_sub).I am using this view in my join statement of query.It is showing below error msg 'Cannot create index on view "dbo.V_PROD_MANU" because it references derived table "X" (defined by SELECT statement in FROM clause). Consider removing the reference to the derived table or not indexing the view.'how to change this below query for index creation.?
April 2, 2019 at 1:35 pm
Indexed views can't reference other views, you'll have to put the nested view directly in the view you want to index.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy