SQL Prompt - 5.3
Inserting columns with the column picker - SQL Prompt
The Column Picker enables you to select multiple columns for tables or views specified in a SELECT statement or similar syntax.
When the suggestions box is displayed, press Ctrl + Left arrow or click on the Column Picker tab to display the Column Picker:

Primary key
and foreign key
columns are indicated by key icons.
The Column Picker is never automatically selected.
- The columns are listed in the order in which they are defined in the table. Clear the List in table order check box to list them alphabetically.
- The first column in the list is highlighted, but it is not selected. Only columns that you specifically check will be inserted.
Note: the Column Picker is only available when it is valid syntax to insert more than one column into your code at this point in the query, and there are columns available to insert. For example, the column picker is available for SELECT statements and after ORDER BY, but not in a WHERE clause.
Selecting columns
As you start typing, the list of columns is filtered to show only those that match the typed characters.
- Use the Up and Down arrow keys to navigate through the list.
- Press the Space bar to select a column to be inserted.
- You can select all the colums in the list by pressing Ctrl + A or clicking the Select All button.
If you have already selected some columns and then filtered the list by typing some letters, the previously selected columns are listed at the bottom:

Inserting selected columns
Press the Return or Tab key to insert the selected columns. The columns are inserted in the order in which you selected them.
Note: You can also insert the selected columns using any of the other insertion keys you have specified, for example Space bar or Dot (.) or Comma (,) - see Setting main behavior options.
The inserted columns are automatically formatted depending on the options specified in the SQL Prompt Options dialog box:
- For SQL Prompt Pro Edition, under New lines on the Format > Data Statements page.
- For SQL Prompt Standard Edition, under Column Placement on the Format > Basic (Standard Edition) page.
If the format of the inserted columns doesn't look the way you want, you can change the formatting options and then apply the new format to the selected code:
From the SQL Prompt menu, select Format SQL
Note: this command is only available in SQL Prompt Pro Edition.
Qualified column names
Inserted column names are qualified when:
- you have selected Qualify column names with table name on the Inserted code > Qualification options page, or
- you have specified more than one table in the FROM clause, and the column names would be ambiguous without also specifying their table
In the example below, both qualification options have been turned on:

In the example below, SQL Prompt has automatically qualified certain column names to avoid ambiguity:

Note: only those columns that appear in more than one table are qualified.
When Assign aliases is turned on as well as Qualify column names with table name, columns are qualified with the table alias. For example:

You can customize how aliases are created and inserted. For more information, see Working with aliases.
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