Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to view whitespace in the query editor for SQL Server Management Studio Express 2005?

I have it enabled in Visual Studio 2008, but I'd really like to enable this feature in SQL Server Management Studio 2005 Express. Does anyone know if its possible? Maybe in a later version?

EDIT: Sorry, I meant specifically in the text/query editor.

like image 443
Pandincus Avatar asked May 03 '10 18:05

Pandincus


People also ask

How do you show spaces in SQL?

In the Customize Toolbar window, click "Add Command" Click "Edit" in the Categories list. Choose "Toggle Visual Space" in the Commands list. Click "OK"

How do I view a query in SQL Server Management Studio?

Use the Activity Monitor. It's the last toolbar in the top bar. It will show you a list of "Recent Expensive Queries". You can double-click them to see the execution plan, etc.

How do I zoom out in SQL editor?

First, like many Windows programs, you can hold down the Control key and use the mouse scroll bar to increase or decrease the font size. Note that as you do that, the percentage of zoom is also displayed in the lower left-hand side of the query window.


1 Answers

In case you still need to know how to do this.

Edit the Registry Key in HKEY_CURRENT_USER:

Software\Microsoft\Microsoft SQL Server\xx\Tools\Shell\Text Editor\Visible Whitespace 

Where xx is the version you have (90 is 2005, 100 is 2008)

And set it to 1 to show. Or for SQL Server 2012 and up client tools it is also in HKCU:

Software\Microsoft\Microsoft\SQL Server Management Studio\v\Text Editor\Visible Whitespace 

where v in SQL Server 2012 is 11.0 and in SQL Server 2014 is 12.0.

like image 98
Andir Avatar answered Oct 07 '22 19:10

Andir