What's the best practice of naming stored procedure for t-sql?

前端 未结 10 1862
再見小時候
再見小時候 2020-12-15 17:24

I have worked with several big databases and the names of stored procedures were very different:

SP_PrefixXXX
PrefixYyyXxx
Prefix: Rep, Act
10条回答
  •  旧巷少年郎
    2020-12-15 18:01

    Im not a pro but i like this way

    Prefix of application = XY; View = v; Stored Procedure = p; Function = f

    Table: XY_Name
    View: vXY_Name
    Procedure: sXY_Name
    Function: fXY_Name
    

    What do you think ? I know some people use the two characters for identifying object type but one character is enough for most cases, right ?

提交回复
热议问题