× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 9/11/2018 6:43 PM, Booth Martin wrote:
This has to be simpler than I am making it.

Several random times a day a file is cleared and then populated again through DDM .  When that happens I want to automatically run a program that updates another file.

A trigger is on rows, so using a trigger would run the program for every row  -  not a good solution.

I cannot access the original file nor the machine that it is on.


A few minutes ago, I suggested an AFTER DELETE trigger.  Reading some of the other replies to your inquiry, including one you made, it seems you want the triggered action to occur after the table has been repopulated.  In that case, make the trigger an AFTER INSERT trigger, again with FOR EACH STATEMENT.

Still a caveat to attach:  it will only work the way you want if the table is repopulated with a SQL INSERT.  If you were to repopulate using CPYF or some other non-SQL means, the trigger will fire for each row inserted, which is not what you want.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.