SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Word-wrap in SQL Server Management Studio

I was delivering a SQL Server upgrade class last week in Toronto Canada. I got asked a slightly off topic question. It went something like this…

“Can you get the text in management studio to word-wrap?”


Word-wrap is not on by default. You can see from the image  below we have scroll bar which we need to use to read the full line of code.

No word wrap

It’s a small thing, but I had never looked for this option before. 
Not knowing the answer I went straight to my demo machine and started looking at the SSMS options in the tool bar:

Tools > Options > expanded the Text Edit

SSMS Options menu

You can see there is an option for word wrap in Management Studio. If you choose the Word wrap option and the sub-option to show a glyph when the text has wrapped you get word wrap and you'll know when Management studio is doing it too.

SSMS Word Wrap

It helps makes your code easier to read too and removes the need for a scroll bar.

Comments

Leave a comment on the original post [feedproxy.google.com, opens in a new window]

Loading comments...