I'm quite a newb when it comes to ASP So im hoping there might be a simple answer to what I'm doing wrong!
I've got a set of queries in a database that each feed into the other, i.e. in QRY2 it contains some information from QRY1, and QRY3 contains information from QRY2 etc so its cascading.
I want to know how I can bring back the results of the final query (in this example QRY3). At the moment I've tried the following with no luck:
(the database connection etc is from an inc file which works fine when executing the code against a single stack qry)
<% Dim rslea, sql, Count, sql1, sql2, sql3 set rslea = server.createobject("ADODB.recordset")
sqllea1 = "EXEC QRY1"
sqllea2 = "EXEC QRY2"
sqllea3 = "EXEC QRY3"
rslea.open sqllea3, AdoCon
%>
Any ideas at all would be helpful!
I've got a set of queries in a database that each feed into the other, i.e. in QRY2 it contains some information from QRY1, and QRY3 contains information from QRY2 etc so its cascading.
I want to know how I can bring back the results of the final query (in this example QRY3). At the moment I've tried the following with no luck:
(the database connection etc is from an inc file which works fine when executing the code against a single stack qry)
<% Dim rslea, sql, Count, sql1, sql2, sql3 set rslea = server.createobject("ADODB.recordset")
sqllea1 = "EXEC QRY1"
sqllea2 = "EXEC QRY2"
sqllea3 = "EXEC QRY3"
rslea.open sqllea3, AdoCon
%>
Any ideas at all would be helpful!