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

前端 未结 10 1884
再見小時候
再見小時候 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 17:52

    I tend to try to give names that not only give an idea what the function is for, but what the input variables will be.

    For example: ProcessMathEquationWithFieldIdPlantId

    This will help give information immediately to anyone else using it, I believe.

    I also avoid sp_ and usp_ to limit any chance of name collisions.

提交回复
热议问题