Hanging View
Brett Robbins, October 19, 2016 - 1:06 pm UTC
I ran the queries to gather the plan information the first time but it hangs on the second run. When I cancel I don't get the results back.
However, based on what I saw in the plan information from the first run I believe the issue is related to the nesting of the views. There are 3 views involved. v1, v2 which calls v1, and v3 which calls v1 and v2.
I used a WITH statement to combine queries to create 1 view instead of 3 separate views. It seems to be working fine this way. No more hanging after the initial select/open.
Thank you for your help.
October 20, 2016 - 1:06 am UTC
Glad you got it sorted out.
Its worth reading about "view merging" vs "view resolution" in the docs.