We are doing some tests with Clarion 5.5 and MSSQL 2008 and encountered some problems with the speed of requesting records out of a table (amount of records is approximately 15000).
We are working in a client/server environment.
This is our code:
OPEN(file_name)
file_name{PROP:SQL} = 'select * from file_name where file_name.datum > x'
LOOP until EOF(file_name)
NEXT(file_name)
ADD_TO_VIEW
END
CLOSE(file_name)
This code is processed much faster with a TPS-file than with an SQL-table.
Furthermore we tried to use the following after opening the file to increase the speed:
BUFFER(file_name,10,2,2,300)
But then we get the error 'File not found'. The program also hangs after this message.
Can you tell us what the problem is?
Are there other possibilities to increase the speed?
We are working in a client/server environment.
This is our code:
OPEN(file_name)
file_name{PROP:SQL} = 'select * from file_name where file_name.datum > x'
LOOP until EOF(file_name)
NEXT(file_name)
ADD_TO_VIEW
END
CLOSE(file_name)
This code is processed much faster with a TPS-file than with an SQL-table.
Furthermore we tried to use the following after opening the file to increase the speed:
BUFFER(file_name,10,2,2,300)
But then we get the error 'File not found'. The program also hangs after this message.
Can you tell us what the problem is?
Are there other possibilities to increase the speed?