Ask a Question related to Coldfusion Database Access, Design and Development.
-
_andyK #1
Reusing a Result Set
Hi,
Lets say I have the following:
<cfquery datasource="#data#" name="getData">
Select * from emp
</query>
Within the page I can use this relsult set. I want to eliminate haveing to
rerun the same query.
Is there a way I can store thie result set and access in another form ?
ex:
<cfset session.query.ids = getData>
Then use cfoutput etc to retrieve this data?
Thanks
Andy
_andyK Guest
-
reusing RemoteObject methods
Hi, I'm using a RemoteObject (userService.CFC) to return data to combo-boxes. I would like to populate several arrays using the same method with... -
Reusing Columns in the same row
Hello, I need to do something like mentioned below: I have a table of 5 rows and 10 columns. I need to print the results (coming from db) in... -
Reusing Parameters across web methods
I have a WSDL interface written by our customer. I want to create our own web service instance that we can test our software against. So I used... -
Reusing a _blank window
Hi there, I have been stumped on trying to reuse a _blank window once it is up. I have a portfolio that has alot of swf.s and I want to reuse the... -
Reusing a user control within the same application
I have created a user control that has a dropdown, and Add button, a text box and a datalist. A person can drop this into another user control or... -
mxstu #2
Re: Reusing a Result Set
If you mean access the results on another page, one option might be to store the query results in a session variable. However, this may not be the best option if the resultset is large.
mxstu Guest
-
_andyK #3
Re: Reusing a Result Set
Hi,
think that I found the solution. Cahe the query then use query of queries to
resort the results as needed.
<cfquery cachedwithin="#createtimespan(0 0 15 0)#" name="mainRS">
exec ....
</cfquery>
then
<cfquery dbtype="query" name="differntsort">
select * from mainRS where ....
</cfquery>
This should work.
The thing I have to find out is how much memory to allocate.
Thanks
Andy
_andyK Guest
-
-



Reply With Quote

