I am not sure what could be causing the error. Can you explain how you are accessing the database? If you can reproduce the behavior with a small portion of your code, you might consider posting it. The trouble is that database access is not a trivial task and there is not enough information in your posting to take a crack at answering it.