If i use SQL Server key name( like where , select, value ) as one of the column name in my user defined table, is there any performance impact ?

Ramesh Reddy Mallidi 41 Reputation points
2021-03-26T07:08:43.607+00:00

Hi Experts, In one of my table, i had column name "Value". but when i write any T-SQL statement by using that column, it is appeared as blue color since it is system defined keyword. so is there is any performance issue or other issues if I use SQL server key words as column names. Please provide me insights for this. Thanks in advance.

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

Accepted answer
  1. EchoLiu-MSFT 14,571 Reputation points
    2021-03-26T07:19:17.75+00:00

    When you want to use sql server keywords as column names, you can use [],
    for example:

         [values]  
    

    in the form of [], it has no effect on performance.But it is not recommended to use sql server keywords as column names.

    Regards
    Echo


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 41,001 Reputation points
    2021-03-26T07:25:19.913+00:00

    "Value" is a Reserved Keywords (Transact-SQL), you should avoid using them for user object names.
    Blue is the syntax high lightning of SSMS and has no further effect; see Color Coding in Query Editors

    1 person found this answer helpful.