![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the difference between the fire_triggers option at the database level (right-click on the db name then select options then scroll down to fire_triggers) and the user level (select Users & Groups, right-click on DBA then scroll to fire-triggers)? Does one take precendence? What happens if the database level option is set to 'On' and the user level (dba) is set to 'Off and the user is signed on to the database as 'dba'? Will triggers be fired in this scenario? |
#3
| |||
| |||
|
|
When set to On, triggers are fired. When set to Off, no triggers are >>> fired, including referential integrity triggers (such as |
|
What is the difference between the fire_triggers option at the database level (right-click on the db name then select options then scroll down to fire_triggers) and the user level (select Users & Groups, right-click on DBA then scroll to fire-triggers)? Does one take precendence? What happens if the database level option is set to 'On' and the user level (dba) is set to 'Off and the user is signed on to the database as 'dba'? Will triggers be fired in this scenario? |
#4
| |||
| |||
|
|
Options for users (when appropriate) override the database wide (and public) ones but only while that user is connected and only for that connection. In the case of disabling triggers for the dba user will only do so for operations coming from a connection that was made for the dba user. Other users on other connections would still retain trigger actionns for their DML operations. As far as setting fire_triggers to (non-default setting of) 'off ' I personally would refrain from doing so, except temporarily and (again personally) only to correct some data problem that can not be fixed some other way. Some applications may require this but again I would be very sparing with my use even there, since the feature also disable RI actions and can cause great confusion when discussing behaviours with others. "Jon Owens" wrote in message news:4b1e65bd.6396.1681692777 (AT) sybase (DOT) com... What is the difference between the fire_triggers option at the database level (right-click on the db name then select options then scroll down to fire_triggers) and the user level (select Users & Groups, right-click on DBA then scroll to fire-triggers)? Does one take precendence? What happens if the database level option is set to 'On' and the user level (dba) is set to 'Off and the user is signed on to the database as 'dba'? Will triggers be fired in this scenario? |
![]() |
| Thread Tools | |
| Display Modes | |
| |