SQL-Server Performance: What is faster, a stored procedure or a view?

后端 未结 11 671
星月不相逢
星月不相逢 2020-12-04 23:53

What is faster in SQL Server 2005/2008, a Stored Procedure or a View?

EDIT: As many of you pointed out, I am being too vague. Let me attempt to

11条回答
  •  失恋的感觉
    2020-12-05 00:23

    I believe that another way of thinking would be to use stored procedures to select the views. This will make your architecture a loosely coupled system. If you decide to change the schema in the future, you won't have to worry 'so' much that it will break the front end.

    I guess what I'm saying is instead of sp vs views, think sp and views :)

提交回复
热议问题