Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Batch updates
Message
From
06/04/1998 10:47:25
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00089763
Message ID:
00089768
Views:
26
>I need to make some batch updates in multiple tables, but have the following problem : when inserting, only the last record is indexed properly.
>
>The code looks like that:
>
>***
>begin transaction
>...
>insert into (Table_1) ...
>...
>replace ... in (Table_2)
>...
>insert into (Table_3) ...
>insert into (Table_3) ...
>insert into (Table_3) ...
>...
>if ...
> end transaction
>else
> rollback
>endif
>***
>
>Note: all tables are locked properly, no table/record buffering is used
>
>Problem: after "end transaction" all changes are made to DBF files, but only the last inserted record appears in corresponding CDX file.
>
>Please help me if you know how to solve this problem. Thanks.
>
>Any related comments or ideas are welcomed too.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform