Version 6.4.0 - September 16th, 2014

Execute current statement

In a query window, you can now execute the SQL statement under your cursor by pressing Shift + F5.

For example, if you have a query containing two statements and your cursor is placed on the second statement:

When you press Shift + F5, only the second statement is executed:

You can also execute the current batch (ie code between two GO commands) by pressing Alt + Shift + F5.

You can also execute to the cursor by pressing Ctrl + Shift + F5. This executes from the start of the script to the cursor, including the statement under the cursor.

Insert semicolons

You can now use SQL Prompt to automatically insert missing semicolons after each statement in a query.

To insert semicolons, go to the SQL Prompt menu and click Insert Semicolons. Alternatively, hold Ctrl and press B then C.

Code highlighting

When you place your cursor over a BEGIN or END keyword, SQL Prompt now automatically highlights the matching keyword:

When you're writing an INSERT statement, SQL Prompt now automatically highlights matching columns and data:

If you want to change the highlight color, you can use the Management Studio functionality for customizing colors.

In Management Studio, go to Tools > Options > Environment > Fonts and Colors and select a new color for Brace Matching (Rectangle):

Use object definition case

You can now use the object name's case for user-defined objects (tables, views, user-defined data types, etc) when applying casing options.

For example, if a data type named MyType is used in a script as mytype, when you format the script or apply casing options SQL Prompt will change the object's case to MyType.

To use object definition case, in the SQL Prompt options, go to Format > Case and select Use object definition case.

Rename variables and aliases

You can now use SQL Prompt to rename all occurrences of a variable or alias in a query.

To rename a variable or alias, place your cursor over an instance of the variable or alias you want to rename and press F2:

Suggestions improvements

Qualify object names improvements

The qualify object names feature now includes the following improvements:

Remove square brackets

SQL Prompt can now automatically remove square brackets from a script.

To remove square brackets, go to the SQL Prompt menu and click Remove square brackets. Alternatively, hold Ctrl and press B then B.

Nullability of columns

SQL Prompt now displays the nullability of columns in the object definition box, tooltips and suggestions box:

Choose environments to install to

You can now choose to install SQL Prompt into Management Studio and/or Visual Studio:

 

New formatting options

New tab history options

Improved loading dialog box

The database loading dialog box now shows actual progress, and you can cancel loading databases:

Support for restricted accounts

You can now connect as:

Other improvements

Bug fixes

Version 6.4.1 - December 2nd, 2014

Features

Fixes