8
I have to use the following techniques to materialized my CTEs and increase the view performance:
WITH CTE AS(
SELECT TOP 100 PERCENT
ORDER BY ...
)
WITH CTE AS(
SELECT TOP 2147483647
ORDER BY ...
)
Now, neither of this ways works. Has anyone face the same issue or know if in SQL Server 2012 this things are not valid?