6 replies
by rueggy
by cb_perl
by gbworld
I am going to say some things you probably do not want to hear, but it is the right thing to do.
First off, I hate the DE. Yes, it makes things simpler to set up. However, the added cost to performance is not worth the fact that you can drag and drop items at design time. I do not use it.
Having said that. There are easier ways to accomplish what you are trying. Here are a couple.
1. Easiest: Change the cursor type of the command object to something like Keyset or Dynamic. If the likelihood of data being added is high between DE and DR, use Dynamic. This also means you will most likely want to move the cursor to the server. This is easy, but has performance penalties.
2. Rewrite the app to use ADO objects directly. This will allow the refresh option. This has the best performance, but is the hardest to code.
There are other options in the middle, like change cursors (location to server will likely be enough as it cannot disconnect the recordset if it is server-side).
The problem here is not the recordset. It is most likely the connection. My assumption is the DE is trying to save you cycles by disconnecting the recordset. This would make sense since it is such a resource pig. The error then is on the connectionobject, not the recordset. There is no way it could be on the recordset as you are moving through it.
If I knew a bit more about the app, I might be able to lead you. For the short term, try changing cursor type and/or location. Once you get it working, it would be best to move to ADO code without the DE, if you can get this one sold. It will make your code much better performing in the long run.
A good spot to start looking for examples is:
www.vbcode.com
In the long run, you might even want to move to XML. There are good samples on www.vbxml.com. And, always keep up with MSDN at http://msdn.microsoft.com.
Gregory A. Beamer
MCP: +I, SE, SD, DBA
by gbworld
If you need a bit more help on this one, write. I will help you nail it down. I am looking at the DE for a student, so I will probably have a bit more info I can share soon.
-- Greg
by cb_perl
by cb_perl
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending