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
Unfortunately, they're not the same type of beast.
A stored procedure is a set of T-SQL statements, and CAN return data. It can perform all kinds of logic, and doesn't necessarily return data in a resultset.
A view is a representation of data. It's mostly used as an abstraction of one or more tables with underlying joins. It's always a resultset of zero, one or many rows.
I suspect your question is more along the lines of:
Which is faster:
SELECTing from a view, or the equivalentSELECTstatement in a stored procedure, given the same base tables performing the joins with the same where clauses?