Edit

Rename tabs

Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics

In this article, you learn how to customize .sql tab names in SQL Server Management Studio 21 and later versions.

Rename a tab

To rename a tab, right-click any unsaved .sql tab and select Rename tab. Enter your custom name and select OK. You can continue to rename the tab as long as the .sql file remains unsaved.

Note

Special characters such as \, /, :, *, ?, ", <, and > aren't allowed.

Save your .sql file

When you save a renamed tab, the custom name automatically populates the File Name field in the Save File As... dialog. Once a file is saved, the tab displays the file name and the Rename feature is no longer available. To change the file name and corresponding tab name, go to File > Save As... and rename the file.