Stored Procedures - End of days

前端 未结 20 1412
轻奢々
轻奢々 2021-01-31 08:51

I’m listening to the Hanselminutes Podcast; \"StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team\". During the course of the Podcast they are speaking about SQL

20条回答
  •  鱼传尺愫
    2021-01-31 09:29

    It also depends on what your stored procedures are doing.

    For example if it's just

    select a from b where x = y
    

    then a stored procedure is probably overkill. But I personally tend to use stored procs to return multiple result sets and page results within the database.

    In my cases I can see a benefit to using them. It is an extra layer to deal with but if you have your code well organised and logical I don't see too much hassle personally.

    A good project with stored procedures is always going to be better than a shoddy project without and vice versa.

提交回复
热议问题