![]() |
|
The sqldone() function determines whether the database server is currently processing an SQL request.
Use sqldone() to test the status of the database server in the following situations:
When the sqldone() function determines that the database server is not currently processing an SQL request, you can assume that the database server does not begin any other processing until your application issues its next request.
You might want to create a defined constant for the -439 value to make your code more readable. For example, the following code fragment creates the SERVER_BUSY constant and then uses it to test the sqldone() return status:
0 | The database server is not currently processing an SQL request: it is idle. |
-439 | The database server is currently processing an SQL request. |