Question, I am creating some web based reports in ASP with
data from SQL 2000.
I have created a stored procedure which will create three
dynamic temp tables called
#Vehicles
#Onyx
#Sales
And data in teach of the tables is populated.
My question is, can I return mutiple record sets from the stored procedure and display all 3 of them in ASP?
If I run the stored procedure, the last few lines in my procedure wil just do a select * statement on each of the populated tables and if I am running this in query analyser for example. Yes it will return the data from each table,
However this procedure would normally be executed from a web page.
So either, there is some way I can return all 3 record sets from the procedure and dispay them in on an on my ASP page
OR I could also just create 3 separate store procedures that just return 1 recordset and execute these inivividually. I know for certain that would work. However, making a separate stored procedure for each recordset doesn't seem like a very efficent way of doing things.
Any ideas?? I just might also be able to do some sort of outter join statement on all these tables to get one table, but the data in each table is fairly unique so this may not be an option.
data from SQL 2000.
I have created a stored procedure which will create three
dynamic temp tables called
#Vehicles
#Onyx
#Sales
And data in teach of the tables is populated.
My question is, can I return mutiple record sets from the stored procedure and display all 3 of them in ASP?
If I run the stored procedure, the last few lines in my procedure wil just do a select * statement on each of the populated tables and if I am running this in query analyser for example. Yes it will return the data from each table,
However this procedure would normally be executed from a web page.
So either, there is some way I can return all 3 record sets from the procedure and dispay them in on an on my ASP page
OR I could also just create 3 separate store procedures that just return 1 recordset and execute these inivividually. I know for certain that would work. However, making a separate stored procedure for each recordset doesn't seem like a very efficent way of doing things.
Any ideas?? I just might also be able to do some sort of outter join statement on all these tables to get one table, but the data in each table is fairly unique so this may not be an option.