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
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\nCreate 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\nUse 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