Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 11 total
Thread Problem reading record
Thu, Feb 11 2010 1:13 PMPermanent Link

Francisco Fernandez
Hi.

I'm having a problem that I'll try to explain in my "spanglish".

In my proyect I have a procedure to assign the number of documents bearing in mind when
working several users don't must repeat the number. Something like that:

while not True do begin
 try
   TableCounter.edit;
   Number:=TableCounter.FieldByname('NUMBER').AsInteger+1;
  
TableCounter.FieldByname('NUMBER').AsInteger:=TableCounter.FieldByname('NUMBER').AsInteger+1;
   TableCounter.Post;
   break;
 except
 end;
end;

With this procedure I insure myself that two users don't access to the record at the same
time to assign the number of document (I think).

Since about tree months ago in several of my customers, and only a few times, the number
of document doubles in two differents users and I don't know why because the code have no
changes and I don't know if may be for the database version.

It seems that when update record don't update to another users and takes and old value of
the field.

I'm now using EDB 2.02 b15 and when don't have problem I used 2.02 b13.

Any idea?

Thank's
Thu, Feb 11 2010 1:56 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Francisco,

<< It seems that when update record don't update to another users and takes
and old value of the field. >>

Are you using pessimistic row locking (the default) ?

http://www.elevatesoft.com/manual?action=mancompprop&id=edb2&product=d&version=7&comp=TEDBSession&prop=RecordLockProtocol

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Feb 12 2010 4:33 AMPermanent Link

Francisco Fernandez
Tim.

<<Are you using pessimistic row locking (the default) ?>>

Yes. Very very pessimistic.
Mon, Feb 15 2010 1:36 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Francisco,

<< Yes. Very very pessimistic. >>

There should be no way that what you describe is occurring.  Are you sure
that you're using the exact code that you posted, and not SQL where you
retrieve the column value, and then update it ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Feb 16 2010 3:29 AMPermanent Link

Francisco Fernandez
Tim.

I'm sure everything I can be, anyway I will continue checking with my customers.

Thanks.
Tue, Feb 16 2010 12:18 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Francisco,

<< I'm sure everything I can be, anyway I will continue checking with my
customers. >>

What OS are they using ?  Are they using the ElevateDB Server, or
file-sharing ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Feb 17 2010 3:41 AMPermanent Link

Francisco Fernandez
Tim.

<<What OS are they using ?  Are they using the ElevateDB Server, or
file-sharing ?>>

Windows file-sharing, one with a windows 2003 server, others with xp in all users.
Wed, Feb 17 2010 12:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Francisco,

<< Windows file-sharing, one with a windows 2003 server, others with xp in
all users. >>

Have they had issues with users shutting down their machines or applications
improperly ?  That could account for such an issue.

--
Tim Young
Elevate Software
www.elevatesoft.com

Thu, Feb 18 2010 3:31 AMPermanent Link

Francisco Fernandez
Tim.

<<Have they had issues with users shutting down their machines or applications
improperly ?  That could account for such an issue.>>

No, all working normally. I'm trying closing table when I read, write and post record.
Thu, Feb 18 2010 8:01 AMPermanent Link

Francisco Fernandez
May be any windows cache or similar?
Page 1 of 2Next Page »
Jump to Page:  1 2
Image