Suggestion Settings: Short Version
-
Line Numbers
Text Editor | All Languages | Line numbers
-
Tab Text
Text Editor | Editor Tab and Status Bar | Tab Text
- Include Database Name:
False - Include File Name:
True - Include Login Name:
False - Include Server Name:
False
This information is avaiable on the status bar at the bottom of the screen. If you routinely work between multiple databases, you may also wish to show the Database name in the tab.
- Include Database Name:
-
Lower Case Built-In Function Names
Text Editor | Transact-SQL | IntelliSense | Casing for built-in function names:
Lower case -
Connection Dialog (SSMS21)
Environment | Connection Dialog | SQL Server: (Classic or Modern)
-
Save Documents as UTF-8
Environment | Documents | Save files with a specific encoding
Unicode (UTF-8 without signature) - Code page 65001 -
Shortcut Key for Duplicate Line
Environment | Keyboard
- Show commmands containing:
duplicate - Select
Edit.Duplicate - Press shortcut keys: CtrlShiftD
- Assign
- Show commmands containing:
-
New Tab
Environment | Tabs and Windows | Insert documents to the right of existing tabs
-
Fonts & Colours
Environment | Fonts and Colors
- Text Editor:
Source Code Pro 18 - Grid Results:
Source Code Pro 12[Requires Restart!] - Text Results:
Source Code Pro 14[Requires Restart!]
SSMS 21 also lets you change appearance of
NULLs and the gridlines. - Text Editor:
-
Copying Results
Query Results | SQL Server | Results to Grid | Include column headers when copying …
SSMS Settings: More Detail
Line Numbers

- Text Editor
- All Languages
- General: Line numbers
- General: Line numbers
- All Languages
Tab Text

- Text Editor
- Editor Tab and Status Bar
- Tab Text
- Include Database Name:
False - Include File Name:
True - Include Login Name:
False - Include Server Name:
False
- Include Database Name:
- Tab Text
- Editor Tab and Status Bar
This information is avaiable on the status bar at the bottom of the screen. If you routinely work between multiple databases, you may also wish to show the Database name in the tab.
Lower Case Built-In Function Names

- Text Editor
- Transact-SQL
- IntelliSense
- Casing for built-in function names:
Lower case
- Casing for built-in function names:
- IntelliSense
- Transact-SQL
Connection Dialog (SSMS21)

- Environmen
- Connection Dialog
- SQL Server: (Classic or Modern)
- Connection Dialog
Save Documents as UTF-8

- Environment
- Document
- Save files with a specific encoding
Unicode (UTF-8 without signature) - Code page 65001
- Save files with a specific encoding
- Document
Shortcut Key for Duplicate Line

- Environment
- Keyboard
- Show commmands containing:
duplicate - Select
Edit.Duplicate - Press shortcut keys: CtrlShiftD
- Assign
- Show commmands containing:
- Keyboard
New Tab

- Environment
- Tabs and Windows
- Insert documents to the right of existing tabs
- Tabs and Windows
Fonts & Colours
The following can be a little flaky, as SSMS tends to forget the font settings. Later are instructions on importing from a setting file.


-
Environment
- Fonts and Colors
- Fonts and Colors
-
Suggestions
- Text Editor:
Source Code Pro 18 - Grid Results:
Source Code Pro 12[→ Restart] - Text Results:
Source Code Pro 14[→ Restart]
- Text Editor:
SSMS 21 also lets you change appearance of NULLs and the gridlines.
Copying Results

- Query Results
- SQL Server
- Results to Grid
- Include column headers when copying or saving the results
- Results to Grid
- SQL Server
Create Template File
-
Create and save a file called
SQLFile.sqlYou probably won’t be able to save it to the right location as it’s protected. Save it anywhere convenient.
-
Move the
SQLFile.sqlfile to one of:C:\Program Files\Microsoft SQL Server Management Studio 21\Release\Common7\IDE\SqlWorkbenchProjectItems\Sql
C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE\SqlWorkbenchProjectItems\Sql\
C:\Program Files (x86)\Microsoft SQL Server Management Studio 19\Common7\IDE\SqlWorkbenchProjectItems\Sql\
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\SqlWorkbenchProjectItems\Sql\
… depending on your version of SSMS
Install SSMSExecutor
Importing SSMS Settings
Keyboard Shortcuts
| Action | Key |
|---|---|
| Execute | F5 |
| Show/Hide Results | ⌃R |
| Refresh Database Cache | ⌃⇧R |
| Results to Text | ⌃T |
| Results to Grid | ⌃D |
| Show Query Plan | ⌃L |
| Show Object Explorer | F8 |
| Show Properties | F4 |
| Upper Case | ⌃⇧U |
| Lower Case | ⌃⇧L |
| Duplicate Line (See Above) | ⌃⇧D |









