Format SQL not working
DanielG
Posts: 4 Bronze 1
When I try to use Format SQL via SQL Prompt in SQL Server Management Studio i get the following error message: "SQL prompt encountered problems while processing this script".
What is the cause of this and how do I do to resolve this?
What is the cause of this and how do I do to resolve this?
Best Answer
-
krzysztofkroczak Posts: 55 Silver 2Hi @DanielG,
We released today version (8.2.2.2657) with the fix of `System.Exception: Undefined: [ABORT]`
Can you try it?
Best regards
Krzysztof
Answers
The error meaasge from the SQL Prompt log shows the following:
10 Oct 2017 09:05:32,605 [1] WARN RedGate.SQLPrompt.CommonUI.Refactor.RefactoringErrorReporter - Refactoring failed
System.Exception: Undefined: [ABORT]
at RedGate.SqlPrompt.Parser.GrammarProcessor.BNFParser.Parse(SqlGrammar outputgrammar)
at RedGate.SqlPrompt.Parser.SqlGrammar..ctor(ServerVersion serverVersion)
at RedGate.SqlPrompt.Parser.SqlGrammar.GetGrammar(ServerVersion serverVersion)
at RedGate.SqlPrompt.ScriptDomInterop.InsertSemicolonsScriptRefactoring.FindSemiColonsForMergeStatements(String script)
at RedGate.SqlPrompt.ScriptDomInterop.InsertSemicolonsScriptRefactoring.PerformRefactoring(String script, ServerVersion version, ITextReplacer textWriter)
at RedGate.SqlPrompt.Refactor.ScriptRefactoringAdapter.ApplyRefactoring(IRefactoringDelegate refactorDelegate)
at RedGate.SqlPrompt.Refactor.RefactorEngine.DoRefactoring(IScriptProvider script, Selection selection, CaretPosition caretPosition, IRefactoringSource refactoringSource, Errors& errors)
It works perfectly after installing version (8.2.2.2657), thanks!
Best regards,
Daniel