Write, format, analyze and refactor your SQL effortlessly

in SQL Server Management Studio and Visual Studio

Download free trial What's new in version 10

Introduction to SQL Prompt

Writing and formatting SQL code by hand, even with IntelliSense, is frankly pretty dull

So we made SQL Prompt, which isn't.

Available as an add-in for SQL Server Management Studio and Visual Studio, SQL Prompt strips away the repetition of coding.

As well as autocompleting your code, SQL Prompt takes care of formatting, object renaming, and other distractions, so you can concentrate on how the code actually works.

Whether you need to write, refactor, or explore database code, find out how SQL Prompt makes it effortless by trying it free for 14 days.

Download free trial

1 Year Subscription

$210 per user

Buy now

Part of SQL Toolbelt Essentials

1 Year Subscription

$177 per user

Buy now

Part of SQL Toolbelt Essentials

1 Year Subscription

$168 per user

Buy now

Part of SQL Toolbelt Essentials

20+

 users

Contact us for a personalized quote

0800 169 7433 

Key features for both SSMS and Visual Studio

Formatting your code

Try formatting your own SQL code below with a few predefined styles, or create and share your own styles with the full formatting options in SQL Prompt. Download a 14-day free trial.

Styles

SELECT CompanyName,AddressType,AddressLine1 FROM Customer JOIN CustomerAddress ON (Customer.CustomerID=CustomerAddress.CustomerID) JOIN Address ON (CustomerAddress.AddressID=Address.AddressID) WHERE CompanyName='ACME Corporation'

Format or press Ctrl+Enter

Easily switch between styles in one click

Work in your own preferred style, then switch to your shared team style for co-working, and on to your company-wide style when you are ready to ship.

Fine-tune your formatting

Our advanced options allow you to fine-tune your formatting styles to get them exactly how you like them, and you can even share them with your friends and colleagues.

Format only what you need

Select a fragment of SQL script you want formatting simply by selecting it, or disable formatting for certain blocks by using our handy actions shortcut.

Command Palette

SQL Prompt command palette screenshot

Speed up your workflow

The command palette gives you a speedy way to get to the things you use everyday using a single keyboard shortcut, while helping you find new and useful stuff to try.

Control both SSMS and SQL Prompt

The command palette helps you use functionality in Prompt, and shows you the most used menu items from SSMS.

Quickly and easily find what you're looking for in your current database

When opened in a database, all objects from the schema of the database will appear in the command palette.

Navigating your code

Our smart code completion works as you type, providing suggestions to help make your coding fast and accurate.

Code completion with statement expansion

Our smart code completion works as you type, providing suggestions to help make your coding fast and accurate.

Use SQL Prompt to script out an object in a query simply by right clicking and choosing Script Object as ALTER from the menu.

Scripting an object as ALTER

Use SQL Prompt to script out an object in a query simply by right clicking and choosing Script Object as ALTER from the menu.

With SQL Prompt you can select an object or synonym from Object Explorer directly from the query window.

Select an object in the Object Explorer

With SQL Prompt you can select an object or synonym from Object Explorer directly from the query window.

Use SQL Prompt to find invalid objects in your database, such as if you want to know if any objects are referencing other objects that have been dropped.

Find invalid SQL Server objects

Use SQL Prompt to find invalid objects in your database, such as if you want to know if any objects are referencing other objects that have been dropped.

SQL Prompt can find and highlight any parameters or variables that are unused in a script.

Find unused variables and parameters

SQL Prompt can find and highlight any parameters or variables that are unused in a script.

Access your schema information and view a summary of the actions that a SQL script performs, in the order in which they occur.

Instant access to schema information and summarize scripts

Access your schema information and view a summary of the actions that a SQL script performs, in the order in which they occur.

Refactoring your code

Safely rename objects in your script

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

Encapsulate SQL as a new stored procedure

With SQL Prompt, you can create a new stored procedure from any block of valid SQL.

Split a table in your database

SQL Prompt can split a table in your database into two tables. This is useful if you want to normalize a database, improve database performance or change the database design.

Analyzing your code

Discover code issues and hidden pitfalls as you type

Over 90 rules are available out-of-the-box, all manageable from the Options menu. Code issues are underlined with quick tips on hover, and further details when you click on the lightbulb icon.

Bring code up to standard with auto-fixes

Once SQL Prompt’s code analysis has highlighted problematic code, you can select the orange lightbulb icon and apply an auto-fix to bring your code up to standard.

Get clear explanations and suggestions to improve your code

The side panel gives you more information about the issue and how you can fix it, plus get links to further reading online.

Perform code reviews or analyse a legacy code base

View a whole list of code issues detected in a SQL script, group them by type, and export them. This makes it much easier for a team to perform code reviews, or analyse a legacy code base for possible refactoring improvements.

Encourage coding standards with code analysis shared settings

You can choose which suggestions you see, save them in a shared drive or a source control folder, and share with your team.

Features only in SSMS

New Feature: Quickly keep track of, search and recover your work by accessing a history of all the queries you’ve written and executed in SSMS.

SQL History

New Feature: Quickly keep track of, search and recover your work by accessing a history of all the queries you’ve written and executed in SSMS.

Set different colors for different groups, servers and databases, so you can quickly and easily identify which environment you’re working in within SSMS.

Tab coloring

Set different colors for different groups, servers and databases, so you can quickly and easily identify which environment you’re working in within SSMS.

Create a script that allows you to rename objects in your database without breaking dependencies.

Smart rename refactoring

Create a script that allows you to rename objects in your database without breaking dependencies.

SQL Prompt in action

See how quick and easy code completion, formatting, and refactoring can be with SQL Prompt

Watch the video

Watch how SQL Server MVPs Steve Jones and Grant Fritchey fared at coding with – and without – SQL Prompt

Watch the coding challenge

SQL Prompt

Get started with SQL Prompt

Download a 28-day free trial, and find out just how effortless coding SQL can be.

Download free trial

Need a hand?

If you'd like any help, or have a question about our tools or purchasing options, just get in touch.