![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a stored procedure which uses a cursor. When running this procedure I get an error message after some time saying that there are too many temporary tables on the connection. Since I do not create any temp table I do not understand what this means! Can anybode help me with this?? |
#3
| |||
| |||
|
|
at wrote: I have a stored procedure which uses a cursor. When running this procedure I get an error message after some time saying that there are too many temporary tables on the connection. Since I do not create any temp table I do not understand what this means! Can anybode help me with this?? What version and build number of SQL Anywhere are you using? Do you have any statement level triggers or row level triggers on the verkauf table? |
#4
| |||
| |||
|
|
I use the latest available version 11.0.1 2299. There were no triggers on the verkaufs table. I had four materialized view, one of them a immediate mv. All of them hold references to the verkaufs table. When I deleted them, the error disapeared! Do MV cause such kind of problems? Tom Reg Domaratzki [Sybase iAnywhere] schrieb: at wrote: I have a stored procedure which uses a cursor. When running this procedure I get an error message after some time saying that there are too many temporary tables on the connection. Since I do not create any temp table I do not understand what this means! Can anybode help me with this?? What version and build number of SQL Anywhere are you using? Do you have any statement level triggers or row level triggers on the verkauf table? |
#5
| |||
| |||
|
|
The IMMEDIATE REFRESH materialized view is likely causing this behavior; it will consume 2 temporary table id's each time a statement updates a table referenced by the view. Committing more frequently will avoid the problem. If you are able to re-form the procedure so that it executes as a single statement rather than a loop, that would also avoid the problem as well as improving the performance of the procedure. SQL Anywhere Developer Community: http://www.sybase.com/developer/libr...ere-techcorner SQL Anywhere Blog Center: http://www.sybase.com/sqlanyblogs at wrote: I use the latest available version 11.0.1 2299. There were no triggers on the verkaufs table. I had four materialized view, one of them a immediate mv. All of them hold references to the verkaufs table. When I deleted them, the error disapeared! Do MV cause such kind of problems? Tom Reg Domaratzki [Sybase iAnywhere] schrieb: at wrote: I have a stored procedure which uses a cursor. When running this procedure I get an error message after some time saying that there are too many temporary tables on the connection. Since I do not create any temp table I do not understand what this means! Can anybode help me with this?? What version and build number of SQL Anywhere are you using? Do you have any statement level triggers or row level triggers on the verkauf table? |
![]() |
| Thread Tools | |
| Display Modes | |
| |