Aleks
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Creating one stored procedures that returns 20 recordsets sounds the easiest solution and will be much easier to debug. Thanks.
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.