>>My code line where the error was pointing is exactly like this:
>>
>>
>>use in select("c_inventory")
>>
>
>How many tables do you have opened? I think this error is indication of something else.
You could be on to something. I initially open about 100 tables. But then the process creates cursors (by calling SQL Server). And the program does it a lot. Could it be that if I don't close these cursors properly the program is running out of some handles?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham