Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referential Integrity Disabling
Message
 
To
11/04/2002 10:02:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00643457
Message ID:
00643903
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform