2010-04-14 42 views
22

我想根据当前连接到的数据库来修改SQL Server Management Studio中查询窗口的外观。例如,为生产数据库使用黄色背景。有没有办法做到这一点?如何根据我连接的数据库更改SQL Server Management Studio的外观?

是否还有一种方法可以更改底部查询状态栏的默认颜色(当未从注册服务器选项卡中选择服务器时)?当我不记得使用注册服务器时,我也希望能够制作出明亮而独特的颜色。

+0

查看我的答案,下面可能是一点点迟到,为更新的问题。 – PatFromCanada 2014-08-13 13:58:16

回答

23

在SQL Server Management Studio 2008中,您可以在不使用任何加载项的情况下对连接进行颜色编码。 2008年SSMS,转到注册的服务器,然后用鼠标右键单击一个服务器,然后连接属性选项卡,然后选中“使用定制颜色”

你可以尝试为SQL Server的外接2005:SSMS Tools Pack具有 Window Connection Coloring

+1

太棒了。我不知道这是可用的。它看起来像一个警告是,你必须打开连接通过注册服务器选项卡,而不是“连接到服务器”对话框...没有什么大不了的。绝对值得的颜色编码。谢谢。 – Feckmore 2010-04-14 20:01:04

+0

KM,当您未选择特定服务器的颜色,或者服务器未连接到使用“注册服务器”选项卡时,是否知道为所有服务器显示默认颜色的方法? – Feckmore 2010-04-15 20:13:29

+0

@Traples,不,我想不出有什么办法 – 2010-04-16 11:00:45

5

您可以根据KM指示更改已注册的服务器颜色。

您还可以通过工具>选项>文本编辑器>编辑器选项卡和状态栏>状态栏布局和颜色[单服务器连接]将默认颜色设置为任意值。这适用于Sql Server Managment Studio 2008.

+0

移动状态栏到顶部的位置也很有用(只对新连接有效) – 2017-02-24 22:52:56

14

在2012年,您可以执行以下操作,一旦完成后它会记住,那么您不需要使用注册的服务器窗口。

Set the Status Color for a Server in Object Explorer 
To set a server status color in Object Explorer 
1. In Object Explorer, select the Connect button and then select Database Engine…. 
2. On the Connect to Server dialog, select Options >>. 
3. Select the Use custom color check box. 
4. To select the color, select the Select… button. 
5. Select either a basic or custom color, then select OK. 
6. Fill in the rest of the connection information, and then select the Connect button. 
相关问题