Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select * from tables or from view?

Status
Not open for further replies.

adonet

MIS
May 4, 2004
312
US
I have two store procedures, which one is better?

1) select * from many tables, add joining, where clause, order by...
2) create a view in which get the same tables, add joining, where clause, order by..., and then create a store procedure, select * from view.

The only thing I concerned is the speed. Which store procedure is fast?
 
depends, if you have small real-time updates and if its an indexed view, you can have significant performance gains using a view.



"I'm living so far beyond my income that we may almost be said to be living apart
 
If it is not an indexed view, then using a view will slow things down as will using select *.

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top