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

What are the benefits obtained by using the Client Server oriented TP Monitors Client Server applications?

4 Answers   CarrizalSoft Technologies, CSC, New Horizons,


Until the early 1960s, what group of elements were called the inert gases?

0 Answers  


What are the disadvantages of infrared technology?

0 Answers  


The ideal fuel for fuel cell use is?

0 Answers  


What is the protocol used by server and client?

0 Answers  






It is estimated that each person in the united states consumes an average of 100 pounds of sucrose each year. Which two simple sugars are linked to make a sucrose molecule?

0 Answers  


What is ACID property?

9 Answers   IBM, Tech Mahindra,


To the nearest whole number, convert 0.300 atmosphere into millimeters of mercury, or torr:

0 Answers  


What is the purpose of a web-client?

0 Answers  


How does XDR'S use of the buffer paradigm make programming easier.

0 Answers  


The tyndall effect can be demonstrated when light is passed through which of the following?

0 Answers  


An atom has 18 protons and 22 neutrons. What is its mass number?

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)