Hello,
I'm developing a web application in PHP. I have Pervasive.SQL 2000 installed in Windows NT and it's working just fine. PHP's working fine too. I need to access several tables through ODBC. I ran some tests with small tables (around 7,500 records) and everything worked fine. But when trying to use larger tables (around 54,000 records) I got a problem which actually ended in 2 problems:
When runing a query, most of the time the result page is incomplete. My tables are still for tests, so nobody is acessing them but me. Lets say I get 120 records listed (the last one displays incomplete). I refresh the webpage and get the whole set of records listed correctly (around 200). I refresh again and get 132 (the last one incomplete again). Is this a server performance situation?
I thought it would be a good idea to limit the number of rows in my result to display them in several pages. I tried to use the "LIMIT" SQL statement inside my query, but didn't work. I found out that ODBC doesn't support the LIMIT statement. Someone suggested to use "SELECT TOP" instead and to add some code to make it work as I needed. ODBC supports SELECT TOP, but it didn't work either. I couldn't find TOP in the list of Pervasive.SQL reserved words, so I assume it's not supported by Pervasive. Is there a similar function or statement I can use for this that would work both for ODBC and Pervasive.SQL?
Thanks in advance for your response.
Tony Romo
Webmaster
Aceros Corey, S.A. de C.V.
Guadalajara, Jalisco, México