views:

58

answers:

2

Hi Everybody, i want to know whether views or stored procedures are faster. i am developing application in asp.net with sql server. Which one should i use for good performance of asp.net application. Thanks

A: 

They should perform equally well.

Without more info it is pretty hard to tell.

Also out of curiosity why you are not using any indexes ?

no_one
A: 

I assume that you want to use only sql query in your SP/View with no extra T-Sql logic. SPs are precompiled so here you might gain some advantage especially if business logic is coded in there. Views you can index and gain significant performance but to do that you have to use schema binding, then it becomes materialized view. You can read more on indexing views here

Tomek