Would the following Trigger cause an indefinate loop?
Because the Trigger is on a table that is updating itself?
Basically I have a 3rd party program that I ahve access to the DB. I don't want users to have the option to select a certain 'User option', but they do. So to get around it, I was alway going to set the value to what I want it to with a trigger.
Code:
CREATE TRIGGER ASC_BT_TRIG_AfterUpdateUserParams
ON USER_OPTIONS
AFTER UPDATE
AS
UPDATE USER_OPTIONS
SET UO_OPTION_ID = 1,
UO_VALUE = 1
WHERE UO_SECTION_ID = 'AutoSpellCheckIssues'
Because the Trigger is on a table that is updating itself?
Basically I have a 3rd party program that I ahve access to the DB. I don't want users to have the option to select a certain 'User option', but they do. So to get around it, I was alway going to set the value to what I want it to with a trigger.