ApexSQL Complete 2014 – Overview of new features

ApexSQL Complete 2014, SQL auto-complete add-in for SSMS and Visual Studio, is released. In this article we will give a brief summary of some of the new features we have implemented.

The Tab navigation feature

The Tab navigation feature monitors all open windows and preserves their content periodically. In the Options dialog under the Tab navigation tab specify the time periods in minutes to store tab information, and a number of days to delete tabs older than the specified period:

The Tab navigation feature

Under the ApexSQL Complete menu choose the Tab navigation command:

The Tab navigation command

This feature also stores windows that have been closed recently, and allows searching of currently opened and recently closed query windows:

Tab navigation dialog - Opened tabs

Tab navigation dialog - Recently closed tabs

The Executed queries feature

Stores information about all queries executed by the user. In the Options dialog under the Executed queries tab specify the maximum number of lines in a script, and a time period in days from which the executed queries will be displayed in the Executed queries dialog:

The Executed queries dialog

Under the ApexSQL Complete menu choose the Executed queries command:

Choosing the Executed queries command in ApexSQL Complete menu

All queries executed in the specified period will be listed in the Executed queries dialog. This feature also allows searching queries by content and opening queries in a new query window in the query editor:

The Executed queries dialog

The Navigate to object feature

The Navigate to object feature locates object in the Object Explorer pane. Right click on an object in the query window and choose the Navigate to object command:

The Navigate to object feature

The selected object will be located and highlighted in the Object Explorer pane:

Selected object is located and highlighted in the Object Explorer pane

Test mode

The Test mode feature allows executing query without consequence and impact to a database. Before executing a query in the query window choose the Test mode option from the SSMS Toolbar:

Choosing the Test mode option from the SSMS Toolbar

The Test mode feature adds the BEGIN TRANSACTION and the ROLLBACK TRANSACTION statements in code, and rolls back the transaction to the beginning to erase all modifications made from the beginning of the transaction:

Dialog showing the Test mode feature functionality

Query example:

USE [AdventureWorks2014]
GO

/****** Object:  Table [Person].[Person]    Script date: 22-May-2015 9:53:53 PM ******/
DROP TABLE [Person].[Person]
GO
 
Query in the test mode:
BEGIN TRANSACTION
USE [AdventureWorks2014]
GO

/****** Object:  Table [Person].[Person]    Script date: 22-May-2015 9:53:53 PM ******/
DROP TABLE [Person].[Person]
GO 
ROLLBACK TRANSACTION

The Snippets library

In addition to our Snippets feature we added a library with the built-in code snippets. All built in snippets are listed in the Options dialog under the Snippets tab:

Built in snippets listed in the Options dialog under the Snippets tab

Also, by right clicking in the query window and choosing the Insert snippet command from the context menu the full list with the built in snippets will be shown in the hint-list:

Full list with the built in snippets is shown in the hint-list

The $CARET$ macro variable

In addition to the snippets library we added a new macro variable $CARET$ that places the cursor in the query window in the place of the $CARET$ macro variable.

Example:

BEGIN
      $CARET$
END

After inserting snippet:

Cursor is placed in the query window in the place of $CARET$ macro variable

April 23, 2014