Tabs Studio Blog (organizing Visual Studio document tabs)

March 9, 2023

Tabs Studio v5.3.0 released

Filed under: Releases — Tags: — Sergey Vlasov @ 11:52 am

Tabs Studio v5.3.0 released:

  • Added support for SQL Server Management Studio 19.
  • Added Selector add-in, that highlights tabs for the selected project, to the installer.

Download link: Tabs Studio v5.3.0.

April 2, 2019

Tabs Studio v4.6.0 adds support for SSMS 18

Filed under: Releases — Tags: , — Sergey Vlasov @ 9:20 am

Tabs Studio v4.6.0 released:

  • Added support for SQL Server Management Studio 18.0 RC1.
  • Added the ability to show tab numbers with the Navigator add-in.
  • Improved reliability of the Visual Studio 2019 integration installer.
  • Fixed inactive tab text for the Visual Studio 2019 Blue theme.
Tabs Studio in  SQL Server Management Studio 18.0 RC1

Tabs Studio in SQL Server Management Studio 18.0 RC1

Download link: Tabs Studio v4.6.0.

May 14, 2017

Tabs Studio v4.2 released

Filed under: Releases — Tags: — Sergey Vlasov @ 12:17 am

Tabs Studio v4.2.0 released:

  • Added support for SQL Server Management Studio 17.
  • Added VS theme support to the tab context menu.
  • Changed Marker and Saver solution settings location to the .vs subfolder in VS 2015/2017.

Download link: Tabs Studio v4.2.0.

April 9, 2016

SSMS 2016 RC2 breaking changes

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 11:46 pm

On April 1 SQL Server 2016 Release Candidate 2 was released along with the SQL Server Management Studio March 2016 preview refresh v13.0.13000.55. This new version of SSMS uses the Visual Studio 2015 Isolated shell and doesn’t allow any 3rd party extensions like Tabs Studio.

Update (May 10, 2016): Thanks to Karl Burtram from Microsoft, Tabs Studio is now in the SSMS 2016 package load inclusion list.

March 11, 2014

Add an SQL query description to the SSMS tab name with the SQLComment add-in

Filed under: Uncategorized — Tags: , — Sergey Vlasov @ 9:35 pm

Many automatically opened SQL tabs in SQL Server Management Studio have names like SQLQuery1.sql, SQLQuery2.sql etc:

SQLQuery tabs in SSMS 2012

SQLQuery tabs in SSMS 2012

To better distinguish such tabs I’ve created the SQLComment add-in that can add a comment from the query body to the tab name:

Tabs with comments in SSMS 2012

Tabs with comments in SSMS 2012

You can chose any comment format and configure SQLComment to extract it using a .NET regular expression. For example, the default regex
StoredProcedure \[dbo\]\.\[(?<M>\w+)\] extracts the procedure name (AddEvent) to the M named group from the following code:

USE [ReportServer]
GO
/****** Object:  StoredProcedure [dbo].[AddEvent]    Script Date: 3/11/2014 8:29:10 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SQLComment options

SQLComment options

To extract description from a comment like ––– provides details on investors you can use the regex ^––– (?<M>.+)$. To support several formats you can combine regexes with ‘|’ like ^––– (?<M>.+)$|StoredProcedure \[dbo\]\.\[(?<M>\w+)\]. You can use several separate M groups (line Name and Ext in standard tab grouping), the resulting string will be concatenated from all captures. Only tabs starting with SQLQueryNN.sql are considered for commenting.

Download link: SQLComment v1.0.0.

Update (March 20): Added commenting support for grouped tabs SQLComment v1.0.1.

Update (October 23): Added the “Set SQL comment…” tab context menu command for temporary comments. Added more customization for displaying comments. SQLComment v1.0.4.

April 23, 2012

SQL Server 2012 Management Studio support

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 10:54 pm

SQL Server 2012 was released about a month ago:

SQL Server 2012 Management Studio splash screen

SQL Server 2012 Management Studio splash screen

The new management studio uses Visual Studio 2010 shell. Extensibility for SSMS 2012 is still not officially supported by Microsoft, but luckily Visual Studio add-ins work just fine in it. Unfortunately, Visual Studio extensions don’t work as ssms.exe contains white list of allowed package GUIDs. I had to change my Visual Studio 2010 helper extension to helper add-in and after that Tabs Studio works without problems in the new IDE:

Tabs Studio in SSMS 2012

Tabs Studio in SSMS 2012

Download link: Tabs Studio v2.7.0.

March 4, 2011

Running SQL Server Management Studio as administrator

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 8:29 am

If you start SSMS as administrator on a Windows 7 machine with UAC on, you get the Class not registered error number 80040154 for the TabsStudio.Connect class:

Running SQL Server Management Studio as administrator

Running SQL Server Management Studio as administrator


Class not registered error 80040154 in SSMS

Class not registered error 80040154 in SSMS

Tabs Studio installation for SSMS includes registration of the TabsStudio.Connect class for the current user. On a Windows 7 machine with UAC enabled, elevated applications (in this case SSMS running as admin) don’t see registered per-user COM classes (see Per-User COM Registrations and Elevated Processes with UAC on Windows Vista SP1 for more details). I can’t add per-machine TabsStudio.Connect registration to the installer because it runs without admin rights. A workaround is to register TabsStudio.Connect per-machine manually, double clicking a registration file I’ve prepared.

SSMS is a 32-bit application. Running on 32-bit Windows it uses per-machine COM registration from HKEY_LOCAL_MACHINE\Software\Classes\CLSID, on 64-bit Windows – HKEY_LOCAL_MACHINE\Software\Classes\WOW6432node\CLSID (see Registry changes in x64-based versions of Windows Server 2003 and in Windows XP Professional x64 Edition). I’ve prepared two registration files – one for 64-bit Windows and one for 32-bit Windows.

Note that after unsuccessful loading SSMS disables Tabs Studio and doesn’t try to load again on a next start. To enable Tabs Studio startup loading you can reinstall Tabs Studio or change HKCU\Software\Microsoft\Microsoft SQL Server\100\Tools\Shell\Addins\TabsStudio.Connect\LoadBehavior from 0 to 3.

Download links for per-machine TabsStudio.Connect class registration: SSMS on Windows 32-bit, SSMS on Windows 64-bit.

February 27, 2011

No default SSMS tab grouping

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 9:17 pm

The most frequent support question I receive is how to work with tabs in SQL Server Management Studio. To improve the first impression for Tabs Studio in SSMS, I’ve decided to disable default SSMS tab grouping:

No tab grouping in SSMS by default

No tab grouping in SSMS by default


If you want tab grouping, two sample expressions equal to the default regex in previous releases are readily available:
SSMS tab grouping snippets

SSMS tab grouping snippets

March 15, 2010

Special tab titles in SSMS

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 1:11 pm

SQL Server Management Studio adds the [ReadOnly] prefix to the window title for read only scripts. It also adds Debugging… and Executing… suffixes when SQL scripts are debugged and executed:

Read only, debugging and executing tabs in SSMS 2008

Read only, debugging and executing tabs in SSMS 2008


I’ve added additional processing for such titles that removes excessive text and adds appropriate status icons:
Updated tabs view

Updated tabs view

January 2, 2010

Tab text options in SSMS

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 11:50 am

Microsoft SQL Server Management Studio 2008 has several built in tab text options:

Tab text options in SSMS 2008

Tab text options in SSMS 2008


You can shorten tabs by omitting parts like server name or login name – SQLQuery1.sql was created with default settings, SQLQuery3.sql was created with database, login and server names off. These options don’t exist in SSMS 2005.

Older Posts »

Blog at WordPress.com.