Format of Valid Selected Code when there is invalid code in the script (Take 2)
I would like to request that script validation be limited to the selected text during Format SQL.
This is a duplicate of a Completed feature (Bug) submitted on version 7. https://redgate.uservoice.com/forums/94413-sql-prompt/suggestions/16611622-formatting-of-valid-selected-code-when-there-is-in
I see recent comments on the original request but you may not be addressing since it is marked completed.
Put 3 lines below in a new Window in SSMS
SOME BAD TEXT
SELECT 1 FROM dbo.Person
Now select All of Line 3 after the GO Statement. Right-click, Format SQL
Should get following error:
"Error inserting semicolons" ...
Script parsing errors:
Line 1 Col: 1 - Incorrect syntax near SOME. ...