Can I have multiple rows of tabs in SQL Server Management Studio - sql-server

I'm wondering if it's possible to setup SQL Server to have multiple rows of tabs for files / queries.
I have a lot of queries I want to switch between, and could move them to different horizontal groups, but I think two rows would be much easier to navigate than that pin on the left that drops down the big list of open queries.
Visual Studio kind of supports this if you pin enough code windows to fill up the top bar.
Is there something similar in SQL Server?
Edit:
I'm trying to achieve something like this (screenshot from Visual Studio)
While SQL Server is more like this

It's now available in current ssms version. From menu => Tools => options:

By default SSMS includes Database name, File name, Login name and server name in each query tab title. So that we can see only 3 or 4 tabs at a time.
There is a work around for this,
go to Tools > Options > Text Editor > Editor Tab and Status Bar and change all of the "Tab Text" group options to false except for the file name.
This will reduce the tab name, so that SSMS will show more tabs at a time

I know of at least one plugin that will do this in SSMS (and Visual Studio). Because, yeah, it would be nice.
Tabs Studio - document tabs manager for Visual Studio IDE.

You can do this by pinning all the tabs. If tabs are pinned, they won't go out of sight but will go to the next tabline instead.
The last line in the picture is a result of "Show pinned tabs in a separate row" option described in this answer.

You can pin all tabs. Pinned tabs won't be hidden.

You can get a list of open tabs (Active Files) using the Ctrl-Tab shortcut. Continue pressing Tab to cycle through the list and release when the desired tab is highlighted. Or just mouse click on the required tab while keeping Ctrl depressed.
Some people do this by managing their files in an SSMS Solution and keeping the Solution Explorer loaded, but I find these to be inflexible and unwieldy.
SQL Prompt 6 has an "Open Tabs" list in the Tab History feature, which you might also find useful.

Related

IntegrationServicesCatalog doesn't allow to create SSISDB

I am trying to create ssisdb on sql 2017 instance, i have configured clr , but for some reason the option to create SSISDB is not showing. Please see attachment and help.enter image description here
Ive had similar issues with several kinds of MS products like SSIS or SSMS, the OK or other buttons not showing, also users couldnt see values or filters in Power BI etc.
In these cases it was a display issue. Try display it on a larger monitor, try changing screen resolution, or move the box further up or try and resize the box in which the buttons should be in.
I also had cases where I couldnt see any buttons but they were displaying when a colleague set it up on his computer, so maybe you could ask a colleague if he/she can see the buttons.

Issues with query tool in pgAdmin 4

I've been using pgAdmin III for about three years, but we're now being forced over to pgAdmin 4 on our new PCs. I'm missing some of the functionality, and I haven't been able to find any answers to these questions in the documentation on the query tool, so I'm guessing maybe the things I want to do just aren't possible.
1) Can I open a new query tool instance in its own window, or am I stuck with tabs in the main pdAgmin window?
2) In pgAdmin III, you could easily switch between databases from a dropdown box at the top of the query window. I don't see any way to do that in the query tool tabs. Is the only way to open another instance in the correct database?
Yes, you can open Query tool in a separate window
After opening a tab, you can click and drag the tab out of the pgAdmin window to create its own window.
Update: The location of this setting has changed. Currently it can be found under Browser/Tab Settings:
Unfortunately, At a moment there is no way to change the database from Query tool window, each time you have open new query tool instance from required database but it's in TODO feature list, We will hope to get it soon :)
Ref: Link

SSAS measure display folders do not show up

I'm developing a cube using the multidimensional model on the Sql Server 2014 Dev edition. Having quite a few measures in a single group I'm trying to organise them into display folders that doesn't work though for some reason. The defined display folders do not show up in any client - Visual Studio, SSMS, Excel, Power BI - you name it. Using VS I can see the defined folders in the properties window, on the translation tab, everywhere except the browser tab. And yes, the visibility attribute for the measures is set to True.
Please let me know if anybody came cross this and fixed.
As it turned out display folders will not appear unless you provide captions for the all added translations.

VS 2012: Scroll Solution Explorer to current file

VS2010 had the feature that viewing a file would automatically cause Solution Explorer to scroll to that file.
With VS2012, viewing different files from within the IDE no longer scrolls and select the file in Solution Explorer automatically.
Is it possible to get this feature back? Is there a setting somewhere? If so, how/where?
Yes, you can find that under
Tools - > Options - > Projects and Solutions - > Track Active Item in Solution Explorer
It's off by default (as you've noticed), but once it's on, Solution Explorer will expand folders and highlight the current document as you switch between files.
If you need one-off sync with the solution pane, then there is new command "Sync with Active Document" (default shortcut: Ctrl+[, S). Explained here: Visual Studio 2012 New Features: Solution Explorer
If you have ReSharper installed clicking Shift+Alt+L will move focus to the current file in Solution Explorer.
Active Item Tracking will also need to be enabled as described in the accepted answer
Tools->Options->Projects and Solutions->Track Active Item in Solution Explorer
There are many ways to do this:
Go to current File once:
Visual Studio 2013
VS 13 has it's own shortcut to do this: Ctrl+\, S (Press Ctrl + \, Release both keys, Press the S key)
You can edit this default shortcut, if you are searching for SolutionExplorer.SyncWithActiveDocument in your Keyboard Settings (Tools->Options->Enviornment->Keyboard)
In addition there is also a new icon in the Solution Explorer, more about this here.
Visual Studio 2012
If you use VS 2012, there is a great plugin to add this new functionality from VS2013 to VS2012: . The default shortcut is strg + alt + ü. I think this one is the best, as navigating to the solution explorer is mapped to strg + ü.
Resharper
If you use Resharper try Shift+Alt+L
This is a nice mapping as you can use Strg+Alt+L for navigating to the solution explorer
Track current file all the time:
Visual Studio >= 2012:
If you like to track your current file in the solution explorer all the time, you can use the solution from the accepted answer (Tools->Options->Projects and Solutions->Track Active Item in Solution Explorer), but I think this can get very annoying in large projects.
If you don't have ReSharper installed and still want to use the shortcut Shift+Alt+L to move focus to the current file in Solution Explorer in Visual Studio 2013 then please follow these steps:
Go to Tools->Options and search for "Keyboard" in the Search Options textbox:
In the Show commands containing box type "solutionexplorer" and then in the list below look for the SyncWithActiveDocument command:
Click in textbox under "Press short keys" label and press: Shift+Alt+L and click the Assign button and you are done:
To verify open any file in Visual Studio and press the shortcut keys Shift+Alt+L and you'll see the file in the solution explorer. Enjoy!
It is possible in VSS by three ways.
You can click on Active sync icon on Solution Explorer.
By selecting Active sync checkbox in Tools (Tools > Options > Projects and Solutions > General). In that check the Track Active Item in Solution Explorer Checkbox. When you select a file in the main window, it will automatically navigate to active file in the Explorer.
By using the Shortcut key (Ctrl + [ + S), you can able to navigate to active Item.
Note: Either 1 or 2 only works in a mean time.. So You have to use either 1st or 2nd.
I've found the Sync with Active Document button in the solution explorer to be the the most effective (this may be a vs2013 feature!)
On Visual Studio 2017, the shortcut is: Ctrl+´,S.
Visual Studio 2019
Tools => Options

Why do my toolbox items disappear in Visual Studio 2008?

I'm working on a solution that contains multiple projects targeting Windows Mobile 5 and standard Windows applications.
Lately when opening up a form in designer the common UI controls (textbox, button, label, etc etc...) have vanished leaving only the controls defined within the project.
Resetting the toolbox has no effect. A google search suggested deleting the toolbox temp files in the Local Settings\Application Data\Microsoft\VisualStudio\9.0, however this was only successful in bringing back the default controls for Windows Mobile 5. The WinForms controls are still mysteriously missing.
Also, if I right-click and Select All on the toolbox, all of the WinForms controls do in fact come up, however they're all grayed out.
Has anyone else experienced this?
I just had a similiar problem. In a managed C++ project all the default toolbox items disappeared form the winforms designer. After playing around for a while I found that there was a problem in the .vcproj file.
<VisualStudioProject
ProjectType="Visual C++"
Version="9,00"
Name="COLLADA Import"
ProjectGUID="{0DEEF9B6-1929-44E3-92EC-13712839FB63}"
RootNamespace="COLLADAImport"
Keyword="ManagedCProj"
TargetFrameworkVersion="0"
>
When you set TargetFrameworkVersion to a valid number, for example 131072 for .Net 2.0, the toolbox items will be back.
If you right click on the Toolbox and select 'Choose Items...' and then sort by the 'Namespace' column, you can then select the ones you need (for example System.Windows.Forms for WinForms).
You can multiselect with Shift and then select/deselect the group.
The controls then reappear in the Toolbox as enabled.
I've noticed this exact same thing for regular WinForms as well. I can't speak to mobile applications but in regular winforms this has a tendency to happen.
I believe it's actually a bug in Visual Studio.
There are some things you can do (again, for WinForms. I'm not sure about mobile) with adding attributes to your control. Such as:
[ToolboxBitmap(typeof(MyControl), "MyControlBitmap")]
There are some other useful related things on this site:
http://en.csharp-online.net/Design-Time_Integration-Attributes
I had exactly the same problem (after installing Windows Mobile SDK all items in the toolbox were greyed out).
I've startet the Visual Studio 2008 command line as administrator and started the following command (WARNING - all your settings are lost !!)
devenv /setup /resetuserdata /selfreg /resetskippkgs
After that the toolbox looked fine and worked like on the first day.
The idea came from this thread: connect.microsoft.com
Go to the Tools menu and choose import & export settings, then choose the 'reset all' setting, then yes. Save your current settings, after that you'll have your toolbox reappear.
Actually you may be able to add a registry key to get this to work also.
Make sure you're not in Debug mode.
If you are running Visual Studio 2008 under vista, try running it as an Administrator. Right click on the shortcut and select Run as Administrator.
Well guess what install Service pack 1 for VS 2008 and it would go away and if you have wireless mouse and keyboard turn it off. Choose one of these two both work.

Resources