{"id":3071,"date":"2018-08-04T20:44:02","date_gmt":"2018-08-04T08:44:02","guid":{"rendered":"https:\/\/www.helenanderson.co.nz\/?p=3071"},"modified":"2020-05-14T18:30:43","modified_gmt":"2020-05-14T06:30:43","slug":"10-ways-to-make-the-most-of-ssms","status":"publish","type":"post","link":"https:\/\/www.helenanderson.co.nz\/10-ways-to-make-the-most-of-ssms\/","title":{"rendered":"How to customise SQL Server Management Studio (SSMS)"},"content":{"rendered":"\n

I spend a lot of my day in SQL Server Management Studio (SSMS). It\u2019s highly customisable with plenty of tools and shortcuts to make life easier.<\/p>\n\n\n\n

These are just a handful of the options available that I find most useful.<\/p>\n\n\n\n


\n\n\n\n

1 – Create a list of comma-separated columns<\/a>
2 – Use the query window to edit side by side<\/a>
3 – Use the keyboard shortcuts<\/a>
4 – Displaying line numbers<\/a>
5 – Moving columns in the results pane<\/a>
6 – Open a new query window on startup<\/a>
7 – Adding commas to a list in one step<\/a>
8 – Select a colour for each environment<\/a>
9 – Use the performance reports<\/a>
10 – Filter objects in Object Explorer<\/a><\/p><\/blockquote>\n\n\n\n


\n\n\n\n

Create a list of comma-separated columns<\/h2>\n\n\n\n

If you want a comma-separated list of all columns from a table in your query window, you can do this by dragging the \u2018Columns\u2019 item from Object Explorer it onto to a query window. No need to type each column name out one by one.<\/p>\n\n\n\n


\n\n\n\n

Use the query window to edit side by side<\/h2>\n\n\n\n

When editing two code blocks it can be useful to see them both side by side.<\/p>\n\n\n\n

By clicking on the query header and selecting \u2018new vertical group\u2019 you are able to then edit and scroll two queries independently.<\/p>\n\n\n\n

<\/figure>\n\n\n\n
\n\n\n\n

Use the keyboard shortcuts<\/h2>\n\n\n\n

Spend more time writing queries by using the shortcuts instead of pointing and clicking.<\/p>\n\n\n\n

These are the shortcuts I find handy:<\/p>\n\n\n\n