SQL Server T-SQL File Naming Standard

Bobby P 231 Reputation points
2023-05-05T18:32:19.3433333+00:00

Just wondering what the Best Practice is for naming T-SQL Scripts?

Like so...

[TableName]---SELECT

[TableName]---UPDATE

Just wondering what others have seen and used in their travels and what makes sense and what does not make sense.

Thanks in advance for your reply.

SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. LiHongMSFT-4306 31,566 Reputation points
    2023-05-08T02:14:53.3466667+00:00

    Hi @Bobby P

    It is recommended that determine the exact purpose of the file simply by examining the name. Please refer to this blog for more details: SQL Server File Naming Standards.

    There is also naming convention for variables, datatypes, functions, and other entities in source code.

    Best regards,

    Cosmog Hong


    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".

    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.

    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.