SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,670 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Let's say we have we simple query to get data from a table.
select firstname from Customer
We have a View with this query and stored procedure .
Which is faster and why ?
I would expect identical performance with either a view or stored procedure because the query execution plans will likely be the same. Views and procedures are different from a functionality perspective, though, so you may see differences in performance for more complex scenarios but I wouldn't generalize one will be faster than the other.