What are Triggers and Rules?

Answers were Sorted based on User's Feedback



What are Triggers and Rules?..

Answer / rajendra prasad reddy penumall

these two are SQL concepts

TRigger is a special type of stored procedure that
automatically takes effect when the data in a specified
table is modified.
triggers invoked in response to an INSERT,UPDATE OR DELETE
STATEMENT EXECUTED.
TRIGGERS are used to handle some exceptional conditions
if u r moving data 40 MB into data base,But data base having
only 30 mB free space then the trigger fires automatically
and the entire transaction automativcally roll backs.

Rules:
Rules are database objects used to enforce data integrity.
this object bound to column or userdefined data types.
to ensure that only valid values are allowed to insert in
to columns.

so trigger acts automatically nad rollbacks the transaction
when error is occured.

rule is used to enforce data integrity on a column or user
defined data type.

are you clear if you want any clarification please mail to
me.

Is This Answer Correct ?    12 Yes 2 No

What are Triggers and Rules?..

Answer / yamuna.g

Triggers are special user defined actions usually in the
form of stored procedures that are automatically invoked by
the server based on data related events. It can perform
complex actions and can use the full power of procedural
languages.
A rule is a special type of trigger that is used to perform
simple checks on data.

Is This Answer Correct ?    8 Yes 1 No

Post New Answer

More Client Server General Interview Questions

Examine the specification for NFS version 2 and 3 what are the chief difference? Does version 3 make any changes that are visible or important to a programmer?

0 Answers  


What is an object server in client server environment?

0 Answers  


What is Load balancing?

2 Answers   BirlaSoft,


Can a protein act as a buffer?

0 Answers  


Which is the correct name for n2o3?

0 Answers  






Many of the groups of elements in the periodic table have acquired common names. The elements in group ia, with the exception of hydrogen, are called what?

0 Answers  


what is Upsizing,down-sizing?

4 Answers   CarrizalSoft Technologies, Microsoft, Wipro,


What is the net charge of a non-ionized atom?

0 Answers  


What is the difference between hcl acid and hcl gas?

0 Answers  


What is meant by Horizontal scaling and Vertical scaling?

1 Answers   Microsoft,


can you show you the organic structure of cetearyl alcohol and tell me what organic family it is?

0 Answers  


What is a tp monitor in client server environment?

0 Answers  


Categories
  • Client Server Architecture Interview Questions Client Server Architecture (26)
  • Client Server General Interview Questions Client Server General (262)
  • Client Server AllOther Interview Questions Client Server AllOther (45)