未加星标

Add Some Color to Your SSMS

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏
Colors Are Spice For Your Eyes
Add Some Color to Your SSMS

One of the definitions of color at Dictionary.com is

the quality of an object or substance with respect to light reflected by the object, usually determined visually by measurement or hue, saturation, and brightness of the reflected light; saturation or chroma; hue.

That is quite a mouthful for something we can just look at and instantly appreciate. Colors are a natural occurrence. Colors can spice up a day in the mountains making it more enjoyable compared to the bland look of winter or the constant lush green of summer.

Colors Can Be Useful Too
Add Some Color to Your SSMS

Colors can, of course, be more than eye candy. They can be useful or have meaning. Insects tend to be attracted to bright colored flowers. Most people understand the concept of a stop light with its red, green and yellow colors.

What about colors in our development work? Of course most of us use syntax highlighting. I do not want to get into it, but I will concede that there are some who feel syntax highlighting gets in the way or distracts from the code. For me the syntax highlighting helps me cue in on parts of the code without having to read it in detail. It isn’t perfect, but it is a quick cue as to what something might be used for or its reason for being where it is located.

That my friend is the core of this post. A simple use of color in our SSMS.

Coloring Your SSMS

I know this feature has been around for quite some time. In fact some of us may take it for granted while there may be others who don’t know about it. Still others might not think it useful at all.


Add Some Color to Your SSMS

When you open your connection dialogue there is a button labeled Options. If we click on that button we are presented with yet another dialogue.


Add Some Color to Your SSMS

Specifically I am talking about the Connection Properties tab in this dialogue box. You can see at the bottom a check box for Use custom color.

This little box and its color picker is what allows us to add some color to our SSMS. If you are like me, it will also allow you to add some meaning to it.


Add Some Color to Your SSMS

While you have the full use of colors I personally tend to use just a few. I base them on the database server to which I am going to connect.

Red for production servers, orange for UAT servers, yellow for QA servers, and of course green for dev servers.

It does not happen often, but sometimes I might need to connect to different servers at once and even run the same basic query. What I don’t want to do is modify the wrong server. While you can control this with security, you may still need the same access across servers.

Once you enable a color for your connection it will color the bottom area of your query. This can act as a visual cue as to what server you are using. Now if you are connected to the right database is a different story.


Add Some Color to Your SSMS
Other Options

There is another option outside of this default SSMS behavior. Red Gate makes a nice product called SQL Prompt . Among other things it colors the tab as well.

I hope you found this post useful and will add some color or spice to your SSMS.


Add Some Color to Your SSMS

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: SQLUA
分页:12
转载请注明
本文标题:Add Some Color to Your SSMS
本站链接:http://www.codesec.net/view/530391.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(31)