Ask a Question related to Coldfusion Database Access, Design and Development.
-
kruse #1
Cached query
I have got this query
<CFQUERY NAME="GetImportData" DATASOURCE="ExcelNordic"
USERNAME="#Application.SQLUserName#" PASSWORD="#Application.SQLPassword#">
SELECT *
FROM #GetSetUp.Workbook#
</CFQUERY>
It connects via ODBC to an excell sheet called ldev.xls.
But it is possible to upload a new document (Excel sheet). When I do this and
then run my query I still gets the result from the old sheet.
When I restart the service "Coldfusion MX 7 ODBC Server" it works again until
i change the document.
Is there something I can do from the code. The user should not be able to
restart a service on the server.
Br Morten
kruse Guest
-
Cached page and query results, help!
I have a frameset and on one frame I have a CFGrid. When I click on an entry in the grid, that same frame replaces itself with the record detail.... -
can you test for a cached query?
Is there something like IsDefined that tests for a cached query? If yes, I can use that to avoid going back to the DB. thanks in advance -brian -
error produced from expired cached query
:rose; How can I catch the error produced when a user tries to refresh a page that depends on a cached query to display content, once the query has... -
expired cached query
:rose; How can I catch the error produced when a user tries to refresh a page that depends on a cached query to display content, once the query has... -
Using aggregrate function sum() from within Cached Query
Hi, I have a query which returns say total 30 records. Now, form within these 30 records, I am using another Cached query which will retrive... -
JMGibson3 #2
Re: Cached query
Do you have Maintain Connections checked in the Administrator for the
DataSource? If so, you should leave it unchecked (for Excel for sure, many
would argue for all DataSources). Just guessing but maybe Maintain on an Excel
means retain a pointer to the exact physical address on disk of the Excel
sheet, even though the DOS/FAT has been changed to a new disk location.
JMGibson3 Guest
-
kruse #3
Re: Cached query
I had set the Maintain Connections. But then I set the timeout and interval to some lower values and now it works just fine.
kruse Guest



Reply With Quote

