SQL Format doesn't format function
sdks
Posts: 44 Bronze 2
in SQL Prompt
I have latest SQL Prompt - 9.1.2.4363 (07th March). Following function can't be formatted and the error "Error laying out sql" is returned. Tried on both SSMS (v17.5) and VS 2017 (15.5.3)
CREATE FUNCTION [dbo].[test](@a CHAR(8)) RETURNS TABLE AS RETURN ( SELECT TOP (1) 1 AS one );
Tagged:
Answers
Thanks for letting us know.
We've tried to replicate the issue locally but so far we've been unable to.
Would it be possible for you to send us the formatting style and log file (either on the forums or by emailing it to us at sqlpromptteam@red-gate.com) that is throwing up the problem?
Here is description how to find logs: https://documentation.red-gate.com/sp8/troubleshooting/finding-the-sql-prompt-log-files
Best regards,
Krzysztof
As @sdks mentioned this issue should be fixed as of SQL Prompt 9.1.4:
You can download SQL Prompt 9.1.4 here:
http://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_9.1.4.4532.exe
Best,
Michael
Technical Lead, SQL Monitor