BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Either BOF or EOF is True - MDAC 2.8 - Delphi 6 SP3 - SQL200

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Chris Cooper
Guest





PostPosted: Mon Jul 25, 2005 11:23 pm    Post subject: Either BOF or EOF is True - MDAC 2.8 - Delphi 6 SP3 - SQL200 Reply with quote



I've search all the threads on this issue and all of them seem to refer only
to Delphi 5 and MDAC 2.5.

I'm Using Win XP SP2 (which include MDAC 2.Cool, Delphi 6 SP3, and SQL2000, so
I believe I have all the updated covered.

When I open a ADODataSet in BatchUpdate mode, Append a record, and then
"Post" it to memory/batch -- Everything is fine. But if I perform a
ADODataSet.CancelUpdates I still get the "Either BOF or EOF is True" error.
However, if commit the inserts to the database first using
ADODataSet.UpdateBatch and then make changes to the record and perform a
ADODataSet.CancelUpdates, everything is fine. It only happens when I start
with an empty recordset and try to CancelUpdates before and UpdateBatch.


Back to top
Chris Cooper
Guest





PostPosted: Tue Jul 26, 2005 3:58 pm    Post subject: Re: Either BOF or EOF is True - MDAC 2.8 - Delphi 6 SP3 - SQ Reply with quote



Thanks Brian,

It seems that I was referencing a bookmark that ofcourse no longer existed
once the dataset was once again empty. It's the ol'
"have-another-pair-of-eyes-look-at-it" syndrome.

Thanks again.

"Brian Bushay TeamB" <BBushay (AT) Nmpls (DOT) com> wrote


Quote:
However, if commit the inserts to the database first using
ADODataSet.UpdateBatch and then make changes to the record and perform a
ADODataSet.CancelUpdates, everything is fine. It only happens when I start
with an empty recordset and try to CancelUpdates before and UpdateBatch.

This can be a legitimate error message if you try to do an operation on an
empty
dataset. I would check your code to see what might be executing after a
CancelUpdate
--
Brian Bushay (TeamB)
[email]Bbushay (AT) NMPLS (DOT) com[/email]



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.