SQL Prompt is 7.3 beta (now closed)
David Priddle
Posts: 218
The stable release announcement can be found here.
Beta closed - thanks to everyone who took part!
This build of SQL Prompt includes:
Full release notes
Feedback
If you find any issues with this release, please post them on this forum.
If you have any suggestions for improvements, please post them on our suggestions forum so other users can vote for them.
Version history
7.3.0.768 - 30th November
Beta closed - thanks to everyone who took part!
This build of SQL Prompt includes:
- Improved SQL formatting
- The formatting feature is now more customisable
- More options for:
- You can now store your styles in a shared folder to have a consistent style across your team
- Create multiple styles and switch between them easily (UserVoice, UserVoice)
- Disable formatting within the script using SQL comments (UserVoice)
- Inline stored procedure (UserVoice)
- New options to control when execution warnings are shown:
Full release notes
Feedback
If you find any issues with this release, please post them on this forum.
If you have any suggestions for improvements, please post them on our suggestions forum so other users can vote for them.
Version history
7.3.0.768 - 30th November
- Support ticket 78351: Exporting to excel now supports exporting money data type using German localization
- Support ticket 78354: Script as insert now supports more localizations for date data types
- Support ticket 78427: Fix for additional space being inserted inside subquery
- Support ticket 78439: Fix for space being removed between PARTITION and BY
- Support ticket 78499: Variable assignments inside SELECT statement can now be aligned like aliases
- Loading indicator is now displayed when previewing a large script in the formatting options window
- Improvements to CTE formatting options
- OPTION clause is now placed on a new line (UserVoice and forum post)
- Improved consistency of formatting across statements
- Close button added to formatting options window
- Support for multi-lined user placeholders in snippet manager using shift+enter (Forum post)
- Suggestions and formatting support for new SQL Server 2016 SP1 syntax:
- CREATE OR ALTER (UserVoice)
- DBCC CLONEDATABASE
- USE HINT query hint
- Option added to change DML clause lists separately from the global list options
- Support for Azure Active Directory integrated authentication
- Minor changes to default formatting style
- Improvements when formatting long IIF expressions
- Fix for execute current statement not selecting the whole ALTER TABLE statement (Forum post)
- Inline EXEC function now unwraps sp_executesql statements (UserVoice)
- Option to align datatypes and constraints now applies to computed columns (Forum post)
- Fix for CTE not formatting (Forum post)
- Scrollbar is now shown on styles window if needed in high dpi mode (Forum post)
- Improved wrapping for CASE statements exceeding the wrap column
- Options for TOP filter now apply to DISTINCT too
- Support ticket 77352: Fix for incorrect precision being displayed on tooltip for DATETIME2 datatypes
- Support ticket 77487: Fix for having to having to re-activate license
- Improved suggestions when using GRANT with schemas (Forum post)
- Improved alignment of single-lined block comments
- Support ticket 76234: Fix for incorrect column dependency being displayed
- Support ticket 75896: Fix for incorrect column being used when expanding wildcard
- SQL Prompt can now retrieve suggestions using Azure Active Directory password authentication (UserVoice)
- Formatting off comment tag now applies to itself (forum post)
- Fix for text being moved inside formatting off comment tags (Forum post)
- Support ticket 76423: ambiguous columns are now always qualified with their table/alias inside an ORDER BY clause
- Support for user account licensing (More info)
- Fix for insert semicolons error being displayed when trying to format a script in older versions of SSMS2016 (UserVoice and Forum post)
- Place first item on new line now works for ORDER BY in windowed functions (Forum post)
- Format action added for applying column alias style (UserVoice)
- Option added to change CREATE/ALTER parentheses separately from the global parentheses options
- Option added to insert an empty line between JOIN clauses
- Ole db provider names are now suggested for OPENROWSET and OPENQUERY
- Fix for incorrectly qualifying a column using the xml "modify" method (Forum post)
- Fix for syntax error being introduced when wrapping long lines containing multi-line strings
- Fix for script not being formatted if there are errors outside of the selected text (UserVoice)
- Whitespace at the end of the file is now maintained if "Preserve existing new lines between statements" is checked (UserVoice)
- Statements inside TRY/CATCH blocks are now formatted the same as BEGIN/END blocks
- Fix for parentheses alignment inside CASE expression (Forum post)
- Experimental feature added to refresh the SSMS IntelliSense (UserVoice)
- Fix for IN parentheses not being aligned correctly (Forum post)
- Fix for parentheses in VALUES clause not being aligned (Forum post)
- Renaming the file that a style is stored in will now rename the style
- Support ticket 74368: Fix for a semicolon being incorrectly added on an ALTER table statement with a masked column
- Formatting now indents nested JOIN clauses correctly
- Fix for formatting issue where line breaks were removed incorrectly after multi-line comments (Forum post)
- EXEC statements with a return value are now formatted
- Fix for formatting issue where whitespace was added after aliases (Forum post)
- Improved formatting for CREATE/ALTER with temporal tables
- Improved suggestions for ALTER with temporal tables
- Fix for issue with insert semicolons and temporal tables
- Tables used in JOIN clauses are now treated as subsequent items (Forum post)
- Added new formatting options for JOINs
- Fix for formatting failing when right aligning AS keyword in CTEs
- Formatting no longer fails with some Azure Data Warehouse -specific statements
- Fix formatting for negative numbers in CASE expressions (Forum post)
- Fix for formatting failling with SELECT into variable with += (Forum post)
- Fix for formatting failing on some scripts (Forum post)
- Option for adding spaces around parentheses contents is now used in more statements
- Support for formatting scripts containing SQLCMD mode and "GO 10" syntax
- New format action for adding/removing AS keyword for table/view alias definitions (UserVoice)
- Simplified the parentheses "Place on new line" options
- ALTER DATABASE statements now respect the "Indent DDL clauses" option (Forum post)
- Column names in temp tables using quoted identifiers are now suggested
- Inline EXEC now correctly handles parameters using the DEFAULT value
- Fix for incorrect indentation when using UNION
- Fix for missing space in ORDER BY between function call and DESC keyword
- Fix for extra space being inserted between "<="
- Fix for extra space being inserted after minus inside IN clause (Forum post)
- Support ticket 73192: Fix for Inline EXEC not inlining negative variables correctly
- Support ticket 73072: Fix for cancel button not responding when using "Open in Excel"
- Inline EXEC feature can now inline scalar functions
- Fix for Format SQL adding additional spaces in the middle of object names
- Fix for Format SQL removing space between "RETURN -1;"
- Support ticket 72842: Fix for visual glitch when using keyboard navigation on execution warning dialog
- DBCC SHOW_STATISTICS now displays options when passing in string arguments (UserVoice)
- 'd' is no longer used as a keyboard shortcut for deleting snippets in the snippet manager (UserVoice)
- Fix for formatting options window disappearing behind SSMS when opening a drop down (Forum post)
- Support ticket 72751: Fix for schema qualification being removed when auto-completing a stored procedure
- Improved UI for comma options
- Improved alignment when using the "Only tabs" option (Forum post)
- "go" is no longer used as an auto-generated alias name (UserVoice)
- Variables are now declared automatically for ouput parameters when generating an EXEC statement (UserVoice)
- Rearranged the DML page in the formatting options
- Minor tweaks and text changes to formatting options
- Fix for space before IS NULL being removed when using tabs (Forum post)
- Sp-5853: Fix for "Cannot find resource named 'System.Windows.Controls.StackPanel'. Resource names are case sensitive."
- Changing the styles folder path no longer requires a restart of SSMS
- Script as INSERT now outputs rowversion/timestamp columns as varbinary
- SP-5911: Fix for null reference exception being thrown by the object tooltip
- Empty lines between multiline comments are now handled correctly (Forum post)
- Correct formatting for FULL OUTER JOIN (Forum post)
- Fix for keyboard focus not changing when switching back to SSMS (Forum post)
- Better handling for empty lines between statements (Forum post)
- Handle multline comments in BEGIN / END correctly (Forum post)
- Format SELECT ... INTO (Forum post)
- Format opening parenthesis of INSERT ... VALUES statement (Forum post)
- Find Invalid Objects now reports objects as invalid if a connection to a linked server fails (Forum post)
- Fix for incorrect list alignment inside a CTE statement (Forum post)
- Declared table variables now get formatted using the same options as CREATE TABLE (Forum post)
- New line is no longer inserted after a batch separator (Forum post)
- Additional new lines are no longer inserted between multi-lined comments (Forum post)
- Fix for error while formatting MERGE statements (Forum post)
- Fix for formatting options window disappearing when opening a dropdown on some platforms
- Support ticket 71592: Fix for wrapping long lines breaking query containing multi-lined strings
- Support ticket 70681: Open in Excel exports Date datatypes without a time
- Initial release
This discussion has been closed.
Comments
Thanks for letting us know! The links should be fixed now.
Thanks,
Aaron.
Current version 7.3.0.450 (at time of post most recent. Issue currently till exists)
We've got a fix in that should resolve this issue, we'll look into getting this released soon.
Best regards,
David
We've just released this fix as part of our new build, could you download it and let us know if it solves your problem?
Best regards,
David
Would it be possible to send the script or a small script that can reproduce the formatting problem to me at david.priddle@red-gate.com?
For the second question, would Script as Alter (F12) do what you want? Otherwise, you can hover over the stored procedure name to get the backing script.
Best regards,
David
Example fragment:
Example 2 fragment (Issue shows up in both lines 6 and 8 - notice the tab can be prior to or after the . operator:
Thanks for your post, we have a fix internally and should be releasing a new beta build soon.
Our support team mentioned you opened a ticket with them to get this fixed too - please keep in mind it is still a beta version and will contain some bugs. You can switch back to the stable formatter at any time by unchecking the "Use new formatting styles" checkbox on the experimental features page.
Sorry for the slow response - we had missed your post as it got lost in the announcement thread. I'll lock this thread to avoid it happening in the future.
Thanks,
Aaron.