Require Highly technical information on ADOCE , When is data actually stored 
Author Message
 Require Highly technical information on ADOCE , When is data actually stored

I am accessing a *.cdb file on a flash card.
Lets say, I
-open a connection to this file
-open a recordset with this connection
- make changes to the records
-close the recordset
and then the power fails.
Is the data cached or is it committed to the flash memory at this point.
When is it actually "stored". Does it only happen when the connection is
closed?
I don't want to keep opening and closing the connection because I don't want
to worry about the CreateObject bug.
Tony


Sat, 06 Mar 2004 20:56:12 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
You've found one of the "features" of eVB.  The connection to the database
isn't actually flushed until the Recordset or Connection object is
destroyed.  A workaround is to manually mount and flush the database volume.

------------
Chris Tacke
President, Innovative DSS

Check out our new eVB resource section at www.innovativedss.com/resource.asp



Quote:
> I am accessing a *.cdb file on a flash card.
> Lets say, I
> -open a connection to this file
> -open a recordset with this connection
> - make changes to the records
> -close the recordset
> and then the power fails.
> Is the data cached or is it committed to the flash memory at this point.
> When is it actually "stored". Does it only happen when the connection is
> closed?
> I don't want to keep opening and closing the connection because I don't
want
> to worry about the CreateObject bug.
> Tony



Sun, 07 Mar 2004 08:55:08 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
In fact I should have an article outlining the workaround on DevBuzz later
today.

Chris Tacke



Quote:
> I am accessing a *.cdb file on a flash card.
> Lets say, I
> -open a connection to this file
> -open a recordset with this connection
> - make changes to the records
> -close the recordset
> and then the power fails.
> Is the data cached or is it committed to the flash memory at this point.
> When is it actually "stored". Does it only happen when the connection is
> closed?
> I don't want to keep opening and closing the connection because I don't
want
> to worry about the CreateObject bug.
> Tony



Sun, 07 Mar 2004 19:57:10 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
Tony,

I haven't tested it, personally, but I recall several posts indicating that
caching is bypassed when using a Storage Card.  If that's true, you should
only need to close the Recordset.

It should be simple enough to test... make the updates, then perform a soft
reset and see if the updates are in the .cdb when you restart the device.

HTH,
Fitz

Quote:

>I am accessing a *.cdb file on a flash card.
>Lets say, I
>-open a connection to this file
>-open a recordset with this connection
>- make changes to the records
>-close the recordset
>and then the power fails.
>Is the data cached or is it committed to the flash memory at this point.
>When is it actually "stored". Does it only happen when the connection is
>closed?
>I don't want to keep opening and closing the connection because I don't
want
>to worry about the CreateObject bug.
>Tony



Sun, 07 Mar 2004 22:21:56 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
As far as I know (I don't work on ADOCE directly, I work on the CEDB
interface underneath) you have to close the connection and call Release on
the connection interface.

Sue

_____________________________________________________________
This posting is provided solely for informational use.  It is
offered "AS IS" and with no warranties.   You assume all risk
for your use. See full conditions for Terms of Use
(http://www.microsoft.com/info/cpyright.htm)
_____________________________________________________________



Quote:
> I am accessing a *.cdb file on a flash card.
> Lets say, I
> -open a connection to this file
> -open a recordset with this connection
> - make changes to the records
> -close the recordset
> and then the power fails.
> Is the data cached or is it committed to the flash memory at this point.
> When is it actually "stored". Does it only happen when the connection is
> closed?
> I don't want to keep opening and closing the connection because I don't
want
> to worry about the CreateObject bug.
> Tony



Mon, 08 Mar 2004 00:33:06 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
Hi Anthony,
I think the problem is within the CEDB provider (CEDB database). I has an
internal
cache in memory which is only flushed when its full or the connection object
is released.
Calling Update() in the recordset does not help. Also it seems to be a
sequencial process,
that means waiting some time after the update also does not help.
Try switching to the SQL Server for WinCE. There data is updated direct
(supposing
you do not have a cache on the flash card) and you have much more great
functions in
the ADO interface and SQL statements.
Someone told me that Microsoft was confronted with this problem by some
system
integrators at their last conference. Try looking up the quick fix list for
WinCE, maybe
there is a fix for that now.

Harald



Quote:
> I am accessing a *.cdb file on a flash card.
> Lets say, I
> -open a connection to this file
> -open a recordset with this connection
> - make changes to the records
> -close the recordset
> and then the power fails.
> Is the data cached or is it committed to the flash memory at this point.
> When is it actually "stored". Does it only happen when the connection is
> closed?
> I don't want to keep opening and closing the connection because I don't
want
> to worry about the CreateObject bug.
> Tony



Mon, 08 Mar 2004 05:25:36 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
CEDB does cache the changes in memory, and it provides an API to flush the
cache, but ADOCE does not make use of that API.  Believe me, Microsoft is
aware of the problem. (If nothing else, this is a frequent question on these
newsgroups.)  I work on CEDB, not ADOCE, but I've passed the problem on to
the right people and I'd be really surprised if the next version of ADOCE
made the same mistake.  Not that I know when the next version of ADOCE will
be available.

Sue

_____________________________________________________________
This posting is provided solely for informational use.  It is
offered "AS IS" and with no warranties.   You assume all risk
for your use. See full conditions for Terms of Use
(http://www.microsoft.com/info/cpyright.htm)
_____________________________________________________________


Quote:
> Hi Anthony,
> I think the problem is within the CEDB provider (CEDB database). I has an
> internal
> cache in memory which is only flushed when its full or the connection
object
> is released.
> Calling Update() in the recordset does not help. Also it seems to be a
> sequencial process,
> that means waiting some time after the update also does not help.
> Try switching to the SQL Server for WinCE. There data is updated direct
> (supposing
> you do not have a cache on the flash card) and you have much more great
> functions in
> the ADO interface and SQL statements.
> Someone told me that Microsoft was confronted with this problem by some
> system
> integrators at their last conference. Try looking up the quick fix list
for
> WinCE, maybe
> there is a fix for that now.

> Harald


schrieb

> > I am accessing a *.cdb file on a flash card.
> > Lets say, I
> > -open a connection to this file
> > -open a recordset with this connection
> > - make changes to the records
> > -close the recordset
> > and then the power fails.
> > Is the data cached or is it committed to the flash memory at this point.
> > When is it actually "stored". Does it only happen when the connection is
> > closed?
> > I don't want to keep opening and closing the connection because I don't
> want
> > to worry about the CreateObject bug.
> > Tony



Tue, 09 Mar 2004 13:17:09 GMT  
 Require Highly technical information on ADOCE , When is data actually stored
Just found this on another newsgroup.  I think you'll find it helpful.
http://www.deVBuzz.com/content/zinc_db_force_commit_pg1.asp

Sue

_____________________________________________________________
This posting is provided solely for informational use.  It is
offered "AS IS" and with no warranties.   You assume all risk
for your use. See full conditions for Terms of Use
(http://www.microsoft.com/info/cpyright.htm)
_____________________________________________________________



Quote:
> CEDB does cache the changes in memory, and it provides an API to flush the
> cache, but ADOCE does not make use of that API.  Believe me, Microsoft is
> aware of the problem. (If nothing else, this is a frequent question on
these
> newsgroups.)  I work on CEDB, not ADOCE, but I've passed the problem on to
> the right people and I'd be really surprised if the next version of ADOCE
> made the same mistake.  Not that I know when the next version of ADOCE
will
> be available.

> Sue

> _____________________________________________________________
> This posting is provided solely for informational use.  It is
> offered "AS IS" and with no warranties.   You assume all risk
> for your use. See full conditions for Terms of Use
> (http://www.microsoft.com/info/cpyright.htm)
> _____________________________________________________________



> > Hi Anthony,
> > I think the problem is within the CEDB provider (CEDB database). I has
an
> > internal
> > cache in memory which is only flushed when its full or the connection
> object
> > is released.
> > Calling Update() in the recordset does not help. Also it seems to be a
> > sequencial process,
> > that means waiting some time after the update also does not help.
> > Try switching to the SQL Server for WinCE. There data is updated direct
> > (supposing
> > you do not have a cache on the flash card) and you have much more great
> > functions in
> > the ADO interface and SQL statements.
> > Someone told me that Microsoft was confronted with this problem by some
> > system
> > integrators at their last conference. Try looking up the quick fix list
> for
> > WinCE, maybe
> > there is a fix for that now.

> > Harald


> schrieb

> > > I am accessing a *.cdb file on a flash card.
> > > Lets say, I
> > > -open a connection to this file
> > > -open a recordset with this connection
> > > - make changes to the records
> > > -close the recordset
> > > and then the power fails.
> > > Is the data cached or is it committed to the flash memory at this
point.
> > > When is it actually "stored". Does it only happen when the connection
is
> > > closed?
> > > I don't want to keep opening and closing the connection because I
don't
> > want
> > > to worry about the CreateObject bug.
> > > Tony



Tue, 09 Mar 2004 15:03:44 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Highly Technical Question

2. Highly Technical Question

3. Highly Technical Question

4. I am a technical recruiter and I amseeking a Visual Basic programmer who can also

5. I am looking for a complete technical reference for OUTLOOK 98

6. Program sample to store the web site information into a data text file

7. ADOCE help required

8. I am trying to update a record, i am not using data control

9. I am trying to update a record, i am not using data control

10. Advanced technical analysis of stock indexes for the technical programmers who invest - djia.gif (1/1)

11. Advanced technical analysis of stock indexes for the technical programmers who invest - djia.gif (0/1)

12. Data Control is Read-Only, when it actually isn't

 

 
Powered by phpBB® Forum Software