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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preforming calculations on ASP server or on SQL server

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
Hi,

I have some calculations I need to do. I can create a stored procedure to do them or I can do them in an asp.net page.

So, which is quicker/more efficient?

 
let sql server do as much work as possible..that's what it does best.

 
I understand that the stored procedure is faster if I need to do multiple select statements,...but, what if i just need one select statment. I then just get the data and manipulate it via asp.net (or in the stored procedure via a cursor). Would the stored procedure still be faster in this case?
 
Why don't you test both ways and you'll see which is faster?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
well, I'm just looking for a general rule...but maybe I will give it a shot. I don't have anything specific to test at the moment though.
 
if your selecting records to say fill a ddl and theres only 20 or so records then yaa, I would write my code in the code behind. that's just me. but,,,I use SP's whenevr I can. why bogg down the front end when the server can do the work for you? you may not even notice the slow down but SP's are still the way to go.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top