Are materialized views available on sql server 2012 or latest? I'am trying to create materialized view like this:
CREATE MATERIALIZED VIEW [NAME] AS...
but I have exception:
Unknown object type 'MATERIALIZED' used in a CREATE, DROP, or ALTER statement.
For now I'am using standard view (create view...), but is generated each time the view is used. In my script I have left join's and a lot of outer apply between two databeses so I can't create indexed view... So i want to create materialized view because it defines a view that is persisted in durable storage and incrementally updated as new data arrives.I wanted to check if such a view would be faster.
Or is there any other solution that will allow me to create a table that will be fed with data from several other tables on an ongoing basis? Need to support 'outer apply', ideally the data should be stored somewhere and only updated if something changes, rather than the script underneath executing every time the data is read.