IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

How to Use Custom Color in SSMS Using Redgate SQL Prompt

Continuing the two previous posts on employing custom color in SSMS using the built-in feature or SSMS Tools Pack to reduce error in connecting to a wrong environment, if you have access to Redgate SQL Prompt, this might be the easiest and best option to use. It’s so easy to configure as demonstrated that many developers overlook this feature.

You can certainly use the default but for the sake of consistency, we’ll setup the same environment similar to what we did with SSMS and SSMS Tools Pack.

Environment (Hex values)
DEV (#66852E)
STAGING (#808000)
QA (#FF8000)
PROD (#BE0000)

Set Custom Color with SQL Prompt

  1. In the SSMS top menu, click on SQL Prompt and select Options.

    Redgate SQL Prompt in SSMS Menu

  2. On the left pane of SQL Prompt – Options window, under the Tabs, click on Color and you will see another pop-up window with the default colors for typical enterprise environments.

    Redgate SQL Prompt Options Tabs > Color setting

  3. Using the color value above, we can set up our own colors.

    Redgate SQL Prompt Options Color setting customized

That’s all the steps needed to setup custom color coding, and here’s what they look like in SQL Server Management Studio v18.1:

SSMS with custom colors on different environment using Redgate SQL Prompt

Further Reading

How to Use Custom Color in SSMS
Using Connection Coloring in SSMS Tools Pack
Format SQL Using Redgate SQL Prompt

Download

SQL Prompt (FREE Trial)

June 17, 2019 Filed Under: How To Tagged With: SQL Server, SSMS

How to Change Default Project Folder in SSMS

There are several ways to configure SSMS to point to your own working directory as the default. Here’s the easiest to do it without registry hack. You just need to edit the Visual Studio settings file (XML format).

Open Windows Explorer, and go to (you can force type):

%USERPROFILE%\Documents\SQL Server Management Studio\Settings

Find vssettings file with the latest modification date. The file name should follow the convention below.

CurrentSettings-YYYY-MM-DD.vssettings

Make a backup of that file. It’s an XML format and it’s very easy to make a mistake, but less dangerous than messing up your registry.

Open the file with a text editor.

Change from:

<PropertyValue name="ProjectsLocation">%vsspv_visualstudio_dir%\Projects</PropertyValue>

To:

<PropertyValue name="ProjectsLocation">%USERPROFILE%\Documents\My Directory</PropertyValue>

Save the file and make sure you quit SSMS and reload it before it takes affect.

That’s all there is to it. The next time you open a file or a project, SSMS will look into your custom folder first.

May 8, 2014 Filed Under: How To Tagged With: SQL Server, SSMS

Using Connection Coloring in SSMS Tools Pack

From previous posting, we demonstrated a way to use custom color coding using SQL Server Management Studio’s (SSMS) Registered Servers properties. But using the feature can be very dangerous if you don’t have the discipline to follow a strict process of opening new query from the registered servers pane. For example, if you use Change Connection button, the color will stay the same as the last environment you were connected to the first time via the registered server panel. That’s where SSMS Tools Pack comes in handy. Don’t get it wrong, this SSMS add-on software is more than just a connection color coding tool, but to add on from our last posting, you can do connection color coding quite easily by using its Window Connection Coloring feature. The tool is free for SSMS 2008 or earlier. You only have to pay when use version 2012 or higher. So here are the steps to use color connection with SSMS Tools Pack:

  1. After you installed the tool, you should see it displayed on your SSMS’ menu (SSMS Tools). Click on it and select Window Connection Coloring, then Options…

    SSMS Tools Pack Window Connection Coloring Options

  2. This part is self-explanatory:

    1. First, you may want to increase the thickness (in pixels) of the colored bar that will be displayed. I found the default a bit too thin for my taste.

    2. Unlike default SSMS custom color, with SSMS Tools Pack you can choose where you want the bar displayed on either one of the four sides of your query window.

    3. Click on the color bar to pick your custom color. Click OK twice when done.

      SSMS Tools Pack Window Connection Coloring

That’s all there is to it. And this is what it looks like when it’s done.

SSMS Tools Pack Active Query Windows

Note: What’s displayed here is a combination of SSMS’ own default custom color on the bottom bar and SSMS Tools Pack’s color bar on the top. I personally like this setup as it’s harder to miss and where the two color disagree, I know the one from SSMS Tools Pack (top bar) is the one to follow.

Download

SSMS Tools Pack

Further Reading

How to Use Custom Color in SSMS Using Redgate SQL Prompt
How to Use Custom Color in SSMS

March 5, 2014 Filed Under: Database Tagged With: SQL Server, SSMS

How to Use Custom Color in SSMS

With many mistakes made by developers and DBAs alike firing a query in a wrong environment, there is one easy thing that can be done to alleviate this problem. That is by using the color coding on the status bar and you can set this up in the server registration on your SQL Server Management Studio (SSMS).

This feature is so easy to overlook because many people just don’t bother to look at the second tab when editing the Properties in Server Registration (in fact, quite a few people don’t bother to use Registered Servers at all to connect to the databases).

On the Registered Servers pane on SQL Management Studio, right-click on the server you want to assign a color and select Properties…

SSMS Registered Server Properties

Click on the Connection Properties tab and check on Use custom color:

SSMS Edit Server Registration Connection Properties

Here are the color schemes I use for the example. Feel free to use any colors that suit you.
Environment (RGB values)
DEV (102, 133, 46)
STAGING (128, 128, 0)
QA (255, 128, 0)
PROD (190, 0, 0)

Do these steps for all database servers you want to color code.

Here is the final result with all windows opened.
SSMS with custom colors on different environment

Caveats

  • You need to use the registered servers in order to use the custom color.
  • For some reason, the custom color settings is not exportable. So you have to take note of your color settings and repeat the steps for any other computers you use.
  • If you use Change Connection button, the color will stay the same as the last one you connected to from the registered servers, which can be dangerous. This can be remedied by using connection coloring in SSMS Tools Pack. This issue was fixed in Windows 8.1, however SSMS Tools Pack still gives a bit more flexibility to place the color bar on one of the four sides of SSMS query window. If you have access to Redgate SQL Prompt, this might be the best option, and you can read on how to do it here.

Further Reading

How to Use Custom Color in SSMS Using Redgate SQL Prompt
Using Connection Coloring in SSMS Tools Pack

March 3, 2014 Filed Under: Database Tagged With: SQL Server, SSMS

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2025 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure