SQL Prompt - 5.0
Learning SQL Prompt - 5.0
Using the object definition box and object tooltips
SQL Prompt displays object definitions in an object definition box. For example, when you select a table in the suggestions box, the object definition box pops up to show the creation script for that table, and a summary of the object.

- For tables and views, the Summary tab shows the column names and data types.
- For stored procedures and functions, the Summary tab displays parameters and their data types, and for functions the data type that is returned.
- For snippets, the snippet code is shown on the Script tab. The Summary tab is not available for snippets.
- For temporary tables, CTEs and table valued variables, only the Summary tab is available.
To resize the object definition box, drag the resize handle
at the bottom left or right corner.
Showing or hiding the object definition box
When you first install SQL Prompt, the object definition box will always be displayed for any suitable object selected in the suggestions box. To turn it off, so that it isn't displayed automatically:
- On the SQL Prompt menu, select Options.
- On the Main > Behavior page of the SQL Prompt Options dialog box (this page is the first page displayed by default), turn off Display object definitions.
Note: If you turn off the object definition box, you can still view the object creation script for any object in your script by hovering over the object name to display a tooltip. Click the tooltip to display the object definition.
You can also increase the time lag before the object definition box is displayed. This may be useful if you don't want it to appear when you are typing code quickly, but you do want to see definitions for certain tables after a slight pause:
Enter the time in milliseconds. 500 milliseconds is the default time.
Copying object definitions
You can copy the information in the object definition box to the clipboard:
- To copy all the information, ensure that there is no text selected, and click Copy.
- To copy part of the information, select the required text, and click Copy.
Using object definition tooltips
When you move the mouse pointer over an object in your query, SQL Prompt displays a tooltip containing the fully qualified object name:

The tooltip also displays the MS_Description extended property for the object, in this case a brief explanation of the table's contents.
If the object name is underlined, you can click it to display the object definition box for the object:

Note: for functions, the tooltip displays the possible parameters for that function.
Using tooltips for more help on system functions and parameters
Move the mouse pointer over a system (built-in) function to display an interactive tooltip. You can click on the tooltip to access the SQL Server online help for that function:

You can move the mouse over the function parameters to display a tooltip specifically listing the valid parameters for this function:
Note: As you enter the parameters, the next expected parameter is highlighted in blue.
Click either type of tooltip to read more about the current function in Books Online:

Showing or hiding tooltips
When you first install SQL Prompt, tooltips are enabled by default. To turn them off:
- On the SQL Prompt menu, select Options.
- On the Main > Behaviour page of the SQL Prompt Options dialog box (this page is the first page displayed by default), turn off Objects or Parameters under Tooltips.
Tooltips are displayed for these objects:
- tables
- views
- stored procedures
- databases
- data types
- snippets
- triggers
- local variables (type)
- local parameters (type)
- columns (table name and type)
- built-in functions (function signature)
- user-defined functions (function signature)
Viewing tooltips for aliases
SQL Prompt displays a tooltip when you have created an alias for a table or view. Aliases are identified by the
icon in the tooltip:
![]()
You can click the tooltip to view the summary of columns in that table or view.
Note: aliases for views are also identified as "Table" in the object tooltip.
Viewing column dependencies
You can use SQL Prompt to view a list of objects that reference a column; this can be useful when you want to modify an object.
To view column dependencies:
- In a SQL Server Management Studio query window, move the mouse pointer over a column in your query.
SQL Prompt displays a tooltip containing the fully qualified column name:

- Click the tooltip to display the column definition box:

All objects that reference the selected column are listed.
Was this article helpful?
SQL Prompt
- SSMS failed to load SQL Prompt add-in 80070002
- No SQL Prompt menu appears in Query Analyzer
- SQL Prompt is showing an old version of my stored procedure (version 3)
- Removing menu items after uninstalling SQL Prompt and SQL Refactor
- A newly-created table exists, but it is not visible in the candidate list (version 3)
- Configuring permissions for SQL Prompt
- Using Intellisense or auto complete with a VS Web project (version 3.5)
- Uninstalling the Visual Studio 2005 add-in
- Unable to cast object of type 'System.DBNull' to type 'System.String' (version 3)
- Suggestions to improve performance for pre-formatted SQL (version 3.9)
- Changing the location of the settings, cache files and snippets folders
- Saving SQL Prompt options (version 3)
- SQL 2008 installation fails with Express Tools rule (version 3.8)
- Add-in failing to load into SQL Server Management Studio on Vista
- Removing SQL Server Management Studio Integration after uninstallation
- Layout SQL Error
- Downgrading to SQL prompt 3.9 from 4.0
- Candidate suggestions being displayed slowly
- SQL Prompt is not showing all linked servers
- Log files
- Refreshing the cache
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Prompt
- Activating your products
- Activating your products
- Getting help offline
- Customizing SQL Prompt to write SQL code more efficiently
- SQL Prompt 3.xx - reducing memory usage to improve performance
- Using SQL Prompt 4: tips for SQL Prompt 3 users
- SQL Prompt release notes - version 4.xx
- Release notes - version 5.xx
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Prompt
Navigating your code