Default size of results window SQL Server Management Studio or alternative
Asked Answered
H

4

14

Any one who uses SQL Server 2008, or earlier variants, knows that when you run the commands in the window the results window pops up for the lower half of the screen. I do want to see my results but when only the first or top 10 results will do have the window is a waste. Is there a way I can change the default size of that window?

Also if this kind of functionality exists in VS 2008 or 2010 let me know and I'll abandon SQL Server Management Studio.

Henpeck answered 15/2, 2011 at 14:39 Comment(0)
D
7

There's no way to change the default size of the results pane. You may want to try sending your results to a separate tab instead. You can adjust this setting for both Results to Grid and Results to Text.

Under the Tools -> Options menu: enter image description here enter image description here

Dandiprat answered 15/2, 2011 at 15:13 Comment(1)
There could not possibly be a more perfect solution to what I was looking to do. Thanks.Henpeck
D
16

Tools -> Options -> Environment -> Fonts and Colors -> Grid Results

enter image description here

Dirac answered 11/7, 2016 at 15:47 Comment(2)
this should be the current answerLevitical
This is just the font size, not the size of the window.Married
D
7

There's no way to change the default size of the results pane. You may want to try sending your results to a separate tab instead. You can adjust this setting for both Results to Grid and Results to Text.

Under the Tools -> Options menu: enter image description here enter image description here

Dandiprat answered 15/2, 2011 at 15:13 Comment(1)
There could not possibly be a more perfect solution to what I was looking to do. Thanks.Henpeck
H
0

can't you just use this:

set rowcount 10

And you will only get the first 10 lines of your result.

Hydrodynamics answered 15/2, 2011 at 14:47 Comment(3)
I hoped it could be that easy. I want a way to set the size of the results window not just number of rows in the results.Henpeck
Then I just do not understand your question. My results pane is fixed and comes up with a scrollbar if there are a lot of results.Hydrodynamics
Yeah, but I think the OP is wanting to save screen real-estate by having the Results window take up less space.Moselle
S
0

It's the second time that I'm searching for an answer to the exact same irritant and although the results tab, proposed by Joe Stefanelli, isn't a bad option, I found the actual way to fix this.

I'm on SSM 2017 and all you have to do is pop your query out of your SSMS interface. In other words, say your SSMS is open on your primary screen, you click on 'New Query', a 'SQLQuery1.sql' window opens, then u click and drag that tab out of SSMS on your secondary screen. From then on, after rolling your first query, simply adjust the results pane to the desired size and it'll remain at that size the next time you execute.

You're welcome! <(^-^<)

Standee answered 27/9, 2019 at 16:0 Comment(1)
You don't need to drag the tab out to do this. Once the results pane has been manually readjusted it'll stay the same height in that tab.Andrade

© 2022 - 2024 — McMap. All rights reserved.