Syntax Coloration in the Transact-SQL Editor

The text within the Transact-SQL (T-SQL) editor is color-coded based on the nature of the text. This coloration helps you identify whether text is a comment, part of a string, a keyword, and so on.

You can view the complete list of categories and their colors and configure a custom color scheme by opening the Tools menu and clicking Options.

Default Colors and Categories

The T-SQL editor uses the standard text editor colors for Visual Studio. The following table lists the default colors that are used in the T-SQL editor and the text category for each:

Color

Text Category

Red

Character string

Dark green

Comment

Blue

Keyword

Teal

Line numbers

Black

Plain text, numbers, operators

For information about how to customize fonts or colors, see Fonts and Colors, Environment, Options Dialog Box.

See Also

Other Resources

Transact-SQL Editing Essentials

Editing Database Scripts and Objects with the Transact-SQL Editor