开发者

There is not enough Procedure cache to run this procedure, Sybase ASE, C#

I've having a small issue loading a ~50meg file into a database. Unfortunately, and开发者_运维知识库 before we ask why I'm doing this, I need to add this feature for legacy purposes. The column is setup as type Image which means I can't unfortunately load the data in chunks and concatenate them (since sybase doesn't not allow it for Image type columns)

I'm building my parameter from the DBProviderFactory using DBType.Binary currently. I've tried other types and nothing helps.

I get the follow error:

There is not enough procedure cache to run this procedure, trigger, or SQL batch. Retry later, or ask your SA to reconfigure ASE with more procedure cache.

The Procedure cache on the server is set to 100meg.

Other Info:

  1. It works work ~35 meg files
  2. The old code (written in PB) uses UPDATEBLOB and it works there.

Any suggestions?


100 MB of procedure cache is pretty small. Especially if you have a single procedure taht you know will take over 50 MB. That is the total procedure cache for the whole database instance not per session or per procedure.

I would suggest you make your procedure cache bigger.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜