r/SQLServer • u/kladze • Dec 09 '25
Discussion SSMS - Nice options to enable?
Hi reddit peeps!
I was thinking about what SSMS settings you guys have enabled or disabled in SSMS.
I have "Retain CR/LF on copy or save" setting enabled.
Can be found under "Query results -> Results to Grid"
I'm using SSMS 22
12
Upvotes
21
u/VladDBA Microsoft MVP Dec 09 '25
I wrote a blog post recently outlining my preferred configuration in SSMS 22
3
u/sam_cat Dec 09 '25
4 space instead of tabs,
Line numbers
2
u/kagato87 Dec 10 '25
Line numbers.
There's a setting that makes the scrollbar wider and act like.a thumbnail of the entire open script. Very handy since we'll formed sql code has distinct shapes in it.
2
u/meatpuppet12345 Dec 10 '25
In SSMS 21+ you can specify a color for each of your connections, then any query window will have that color bar at the bottom. The red bar for my prod connection is a quick reminder not to run the DROP statements I pasted that I intended for my green-colored local db connection. Not that I've ever run anything into prod by accident, of course, who does that?
1
u/Black_Magic100 Dec 09 '25
Vertical tabs feels more like an IDE whereas horizontal feels like I'm working in a browser
1
u/davidbrit2 Dec 09 '25
I immediately turn on word wrap and line numbers for the text editor.
1
u/paultherobert Dec 09 '25
I use the unsupported dark mode - but be warned, the menus can be hard to read. +1 for line numbers. Registered server and central management server are cool features too
1
u/CPDRAGMEISH Dec 11 '25
Line Numbers
GO TO
1
u/chenks76 Dec 18 '25
it would be good if the settings actually worked half the time.
ssms 22 seems to have some issues in relation to settings not working.
the setting to include column headers (results to grid) no longer works if you're copy/pasting the results from a table into, for example, excel. you now have to specifically right click on the results and choose "copy with headers"
also, the setting to turn off the line numbers in the query editor doesn't seem to exist, with intelsisense disabled the line numbers still appear, and any other setting relating to line number does nothing.