Using Asynchronous ODBC ?



Hi all,

I am currently trying to setup a query tool for our in-house database,
Navision, using PHP and ODBC. So far, no problem.

However, I find that there are certain queries taking longer than the
maximum execution time of the script itself, leading to timeouts, even when
I replace "SELECT * FROM ..." with the specific fields I am looking for
(example: 'SELECT Name, Number, Telephone FROM Customers' instead of 'SELECT
* FROM Customers').

Moreover, the Navision ODBC link does not support a LIMIT clause, and it
insists on collecting a complete recordset before returning.

Short of extending the timeout in php.ini, or making users wait for what
seems like ages, I would like to know if the following is possible, and if
so, how to go about it:

1. Is there a way to execute an OBDC query asynchronously ? I.e. I can show
a page of records while the rest is still being fetched ?

2. Failing (1), is there a way to emulate a limit clause ? This would only
solve the 'paging' problem, not the initial query time.

I have already experimented with cached result sets (with serialize to file
etc.), but this would invalidate the 'real time' factor I'd like to have.

I am running PHP 5.1.4 on IIS (Windows XP) on my development box.

Any information or pointers to a possbile solution would be appreciated.

Kind regards,
Wef.


.



Relevant Pages

  • Re: [PHP] ODBC and long text fields
    ... We've a PHP app that uses ODBC to talk to a MS SQL server. ... The internal code for a query is ...
    (php.general)
  • ODBC Help!
    ... I have an ASP.NET application where I am writing data through an ODBC ... Data from the SS database is copied to the Navision database at ... ODBC .NET doesn't support a Navision interface ...
    (microsoft.public.data.odbc)
  • Re: Can one call an Access database on computer using the IP address?
    ... >> of it online as a dynamic site, but we don't want the database to leave ... Could a PHP script running ... >Sounds doable with ODBC, as other posters have noted already. ... I haven't used ASP for a while, but I have created a few ODBC/PHP ...
    (comp.lang.php)
  • Re: ODBC Help!
    ... code on the production server, I determined that the code is hanging on the ... why doesn't ODBC.NET support the Navision interface? ... > Is it a problem with the Navision driver or the ODBC .NET provider? ...
    (microsoft.public.data.odbc)
  • Re: ODBC Help!
    ... why doesn't ODBC.NET support the Navision interface? ... Is it a problem with the Navision driver or the ODBC .NET provider? ... (The primary data source is a SQL Server ... Data from the SS database is copied to the Navision database at ...
    (microsoft.public.data.odbc)