CTE is not returning data
Posted: Sat 25 Feb 2017 19:15
A CTE needs ";" (semicolon) before the "WITH" keyword, in previous version ";" was not required when the "WITH" keyword was first statement in a file or after "GO", this has changed in version 5.4.215.
Now without the semicolon in front of "WITH", the query is not returning anything, no errors are reported and the "Output/General" windows just displays:
Semi-colon insertion (Edit/Advanced/InsertSemicolons) is not inserting semicolons before "WITH" in CTE either, are these bugs?
Now without the semicolon in front of "WITH", the query is not returning anything, no errors are reported and the "Output/General" windows just displays:
The same query is returning records in SSMS.Changed database context to 'MyDatabase'.
DML succeeded [0.002s]
Execute succeeded [< 0,001s]
Semi-colon insertion (Edit/Advanced/InsertSemicolons) is not inserting semicolons before "WITH" in CTE either, are these bugs?