简体   繁体   中英

SQL Management Studio 2008 - Server name on Query Editor tabs…where did they go?

I recently upgraded to SQL Management Studio 2008 (full not express, if it matters).

In 2005, when I was in the Query Editor, each tab (with an unsaved query) would have the servername-instance-query name or something like that, but all I cared about was seeing the server name there so I knew which server I was running my query on.

In 2008 it appears that they've decided to change the tab title to query name-servername, and the result of this is I can't see what server I'm working on without hovering over the tab and looking at the tooltip thing that pops up, which really slows me down. So currently all my tabs are titled something like "SQLQuery5.sql..." which is useless to me.

How can I get the servername back to the front the tab title?

It can be turned off/on in SSMS 2005, so possibly in 2008 you have it switched off.

Go to Tools -> Options -> Text Editor -> Editor Tab and Status Bar. Under "Tab Text" in the right hand panel, make sure "Include server name" is set to True.

如果您在顶部检查了SQL编辑器菜单,则会出现一个下拉列表,告诉您当前所选选项卡的确切数据库。

You should be running any queries in the active window? At the bottom there is a status bar with the server name and database name in it. That way you don't have to clutter the limited tab space with all that data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM