Soldarnal
Soldarnal

Reputation: 7778

Server based syntax highlighting in Management Studio

Why are some keywords highlighted blue and some gray in SQL Server Management Studio?

And why does the UNION keyword highlight as gray when connected to a SQL Server 2000 database, but blue when connected to a SQL Server 2005 database?

Upvotes: 1

Views: 691

Answers (1)

Meff
Meff

Reputation: 5999

They are reserved words. We have a table called Order in our production DB (Before I started!), which is annoying.

Edit:

Sorry, misread you. Blue = Keyword, Gray = Operator. Full list of colpurs: http://www.informit.com/guides/content.aspx?g=sqlserver&seqNum=177 about halfway down.

Upvotes: 2

Related Questions