Here's my question. I have a SQL Server database that I am converting to Oracle 9i to power my ASP web site. Most of the objects in the SQL database are Stored Procedures used by the server to return large recordsets based off of a set of parameters that are submitted.
My question is, can I convert these to Oracle Procedures and get the same result. I know I can get a result set out of a view, but every thing I have seen says I cant' get one out of a procedure. I know that I can create output variables, but I would need those variables to store a array, to hold the entire record set. Also, I will have up to 30-40 outputs for a particular procedure, and I don't want to have to define each and everyone becuase I have almost 150 procedures to convert.
Final part is that I need to be able to hand a field name to the database as a parameter, and have that parameter be used as part of the order by clause. Otherwise I have to hard code the select statement for each different way I want to sort a particular report.
Is a view the easiest way to do this, or can this realistically be done in a procedure.
My question is, can I convert these to Oracle Procedures and get the same result. I know I can get a result set out of a view, but every thing I have seen says I cant' get one out of a procedure. I know that I can create output variables, but I would need those variables to store a array, to hold the entire record set. Also, I will have up to 30-40 outputs for a particular procedure, and I don't want to have to define each and everyone becuase I have almost 150 procedures to convert.
Final part is that I need to be able to hand a field name to the database as a parameter, and have that parameter be used as part of the order by clause. Otherwise I have to hard code the select statement for each different way I want to sort a particular report.
Is a view the easiest way to do this, or can this realistically be done in a procedure.