Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trigger Invocation Cancel All Work
Message
From
22/10/2001 11:38:10
 
 
To
22/10/2001 10:53:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00571639
Message ID:
00571677
Views:
21
This message has been marked as the solution to the initial question of the thread.
Hi!

Does you trigger use ROLLBACK? If yes - here is an answer. Even when you have several BEGIN Transaction, Rollback cause reverting all changes and cancelling of ALL transactions (unlike in VFP). END transaction does decrease transaction level counter for the most recent transaction only, and does not update at all, indeed, until the last transaction is ended.

HTH.

>Hello,
>
>I need some help about this:
>
>I've a trigger in a table that writes some data in another table of another database, but the main problem it's when the local application send a group of updates to the triggered table all the process betewwen this instructions
>
> set implicit transaction on
>
> insert into table1 (...)
> update table 2 (...) /* This it's the triggered table */
>
> 'IF @@TRANCOUNT > 0 COMMIT TRAN'
> set implicit transaction off
>
>simple disapear! It's like the transactions were not comitted...
>
>Ideas?!
>
>Thanks,
>Manuel Almeida
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform