Abnormal problem: exit program rollback ALL!!!!

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
fringui
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 15.10.2009, 16:52

Abnormal problem: exit program rollback ALL!!!!

Post by fringui »

Hi, i use delphi 7, zeoslib 6.6.5 stable and MsSQL.

I make some edit in a table from software X in pc A.
At this time i use a PC B and software Y and i see the edit of pc A.

When i close the program in pc A after some edit record i lost all data!!

All record i have edit i have a BIG rollback and i lot all edit!!


Why?!?!?!

I have Zconn with Autocommit True
I use Zquery with update sql, cachedupdate false.

Thank a LOT!!
guidoaerts
Senior Boarder
Senior Boarder
Posts: 93
Joined: 01.07.2009, 16:07

Post by guidoaerts »

Maybe this is a stupid question : did you Post?
Guido
fringui
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 15.10.2009, 16:52

Post by fringui »

Yes, i post, i try to commit, i try all combination of commit, cache update.. etc etc... no solution :'(

I try to make a sql update (update table set field=1 where ...)
No difference.

I update, the data is in the table, i see it from my program, from another program in another pc.. but when i close my program all data rallback!

Help me!
Thanks!!
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi,

I don't know but it looks like mssql supports 2 commit levels from your description. A 'soft' commit after every update with autocommit. And a definitive commit that should happen before closing the connection. Is that TRUE?

Do you close the query and connection before shutting down your program?

Mark
Image
Post Reply