Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

Recordset in ASP or Stored Procedure?

I have an ASP page that has about 20 recordsets. Each recordset returns a maximum of 10 records, some only return one.
Would the ASP run faster if the code to return the records is in the ASP page or would it be faster if I create stored procedures that then the ASP would call to create the recordsets and return the records?

I am using ASP classic and MS SQL 2012 R2
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Depends on how much data you are processing. How much time ASP is taking and how much the stored procedure will take.

I would say go ahead and compare the timings, whosoever the timings is less go with that. User should get the data as soon as possible.
Avatar of Aleks

ASKER

It would take long hours to created the stored procedures and an asp to call them. This is why I am asking before we make such effort
In that case I would say dont touch anything. Lets go with what ever is there. If we go ahead with SP then we also have to do a detailed level of unit testing and there is risk of injecting a bug in the existing environment. So lets go ahead with the current ASP code.
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleks

ASKER

Creating one stored procedures that returns 20 recordsets sounds the easiest solution and will be much easier to debug.  Thanks.