Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referential Integrity Disabling
Message
 
À
11/04/2002 10:02:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00643457
Message ID:
00643903
Vues:
10
>Well, to me, all this seems more complicated than setting a variable to disable a certain trigger! As you would do with TaxRI.
>
>Hilmar.

On further checking, when you do a DELETE TRIGGER it is permanently gone from the database container. Why it still executed later is a mystery...

But I went ahead and added code to check to see if the database had any DELETE triggers after opening the database...

lcCont = DBGETPROP('cont','Table','DeleteTrigger')

and if this was not empty, then I deleted the Trigger

DELETE TRIGGER ON cont FOR DELETE..

Later in the code, before I finish, I add the trigger back if necessary...
IF NOT EMPTY(lcCont)
	SELECT cont
	CREATE TRIGGER ON cont FOR DELETE AS __RI_DELETE_cont()
ENDIF
Tommy
Tommy Tillman A+ NetWork+ MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform