SSMS option for lower case GUIDs

Longstreet, James [USA] 1 Reputation point
2025-03-04T13:24:58.7766667+00:00

Visual Studio distinguishes between upper and lower case guids. By default, VS saves them in lower case. Because SQL prints them in upper case, frequently, it is too easy to have duplicate guids in Visual Studio coding because of case. For example:

CREATE @GUID UNIQUEIDENTIRY = '2B170864-94BC-4BA8-8F92-0006CE5D76D2'

CREATE @GUID UNIQUEIDENTIRY = '2b170864-94bc-4ba8-8f92-0006ce5d76d2'

Visual Studio sees these are different. The human eye can see they are the same other than by case. Also VS has the ability to tell them apart - it must be told to tell them apart. SQL Server is case insensitive and prints in upper case for GUIDs.

I'm asking for an OPTION to print them in lower case. Can MS add this task to the SQL Server Managment Studio options capability?

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
147 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LiHongMSFT-4306 31,001 Reputation points
    2025-03-05T02:40:57.8933333+00:00

    Hi @Longstreet, James [USA]

    To convert text to lowercase, press CTRL+SHIFT+L, or click Make Lowercase on the Advanced submenu of the Edit menu.

    See: To switch text to upper or lower case.

    Best regards,

    Cosmog


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.