![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Erik, Depending on what software you are using to write your application (we use Clarion) we had to up the limit on the prepared statements. It defaults to 50. You can do this by setting the max_statement_count option. It defaults to 50 and can be set up to 255. If you don't want to limit at all, then you can set it to 0. I would try moving up by say 25 statements at a time. If you find a level before 255 that works then your ok. If not, you have a couple of options. You can see what is causing all the prepare statements and do you have control over them (we don't, the drivers control the prepare statement executions) so we then set them to 0. HTH's Michael Gould "Erik Anderson" <erikba (AT) teamworkgroup (DOT) com> wrote in message news:3fd66279$1 (AT) forums-1-dub (DOT) .. I'm getting rathar frustrated at this error which has been reported to me from onsite, our tech rep there is also blaming some database engine instabilities on the utility that has been throwing this error message. This utility was written by me and uses ODBC 3.x commands. I have gone through and checked to make sure that every hstmt that is allocated is freed. I have also gone through the "-zr all" log and matched each STMT_PREPARE to a STMT_DROP. I am starting to run out of ideas of what might be wrong. The following is the list of all the SQL commands that are generated by this utility. Are these commands "safe" to be executed once a second or so? Do they "leak" hstmts? Is there a safer/better way to retrieve this kind of information? This utility is indended for places that do not have a Sybase Central installation running... SA_DB_INFO SELECT CURRENT TIMESTAMP SA_CONN_INFO SA_CONN_PROPERTIES(x) |
#3
| |||
| |||
|
|
I'm getting rathar frustrated at this error which has been reported to me from onsite, our tech rep there is also blaming some database engine instabilities on the utility that has been throwing this error message. This utility was written by me and uses ODBC 3.x commands. I have gone through and checked to make sure that every hstmt that is allocated is freed. I have also gone through the "-zr all" log and matched each STMT_PREPARE to a STMT_DROP. I am starting to run out of ideas of what might be wrong. The following is the list of all the SQL commands that are generated by this utility. Are these commands "safe" to be executed once a second or so? Do they "leak" hstmts? Is there a safer/better way to retrieve this kind of information? This utility is indended for places that do not have a Sybase Central installation running... SA_DB_INFO SELECT CURRENT TIMESTAMP SA_CONN_INFO SA_CONN_PROPERTIES(x) |
![]() |
| Thread Tools | |
| Display Modes | |
| |