Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with buffering and tableupdate
Message
From
16/03/2001 18:27:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Problem with buffering and tableupdate
Miscellaneous
Thread ID:
00486174
Message ID:
00486174
Views:
33
Hi.
I have a program that updates/inserts a bunch of records. At the beginning
I
Selec table1
Begin transaction
if !tableupdate()
failflag = .T.
endif
Selec table2
scan for table2.key = table1.key
if !tableupdate(.t.,.t.)
failflag = .T.
endif
if not failflag
change stuff
insert into table 3
insert another record into table 3
endif
endscan
IF failflag
ROLLBACK
revert ...
else
end transaction
endif

My problem is that the second insert into table 3 happens then rolls back or reverts because once the whole transaction is done, I only have one record.
I am using row buffering. So my question is how do I use row buffering and use INSERT-SQL....

THanks for the help

Sandi Cassidy
Reply
Map
View

Click here to load this message in the networking platform