wat is mean by trigger?.......normally wat use......when
trigger used in sql...........
plz cleary say with example.......

Answers were Sorted based on User's Feedback



wat is mean by trigger?.......normally wat use......when trigger used in sql........... plz cleary..

Answer / vimal p.s

A trigger is a SQL procedure that initiates an action when
an event (INSERT, DELETE or UPDATE) occurs. Triggers are
stored in and managed by the DBMS.Triggers are used to
maintain the referential integrity of data by changing the
data in a systematic fashion. A trigger cannot be called or
executed; the DBMS automatically fires the trigger as a
result of a data modification to the associated table.
Triggers can be viewed as similar to stored procedures in
that both consist of procedural logic that is stored at the
database level. Stored procedures, however, are not event-
drive and are not attached to a specific table as triggers
are. Stored procedures are explicitly executed by invoking
a CALL to the procedure while triggers are implicitly
executed. In addition, triggers can also execute stored
procedures.

Is This Answer Correct ?    15 Yes 1 No

wat is mean by trigger?.......normally wat use......when trigger used in sql........... plz cleary..

Answer / radhakrishnan vaithilingam

Def Trigger : bascially trigger means "activate or generate
or fire".if we touch any column automaticcaly some event
accure in database.
use :
1) if update or insert or delete more than one table we can
use this concept.
2) trigger reduce coding error and reduce wrong action
3) we can trace the system login or logoff inforamtion.
this is system trigger.

example :
1) bank account
if we retrive the money from ATM. the money automatically
reduced from your account immediate.
2) fire alarm

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More SQL Server Interview Questions

how to use DTS package in 2000,2005,2008 in sql server

0 Answers   Microsoft,


What is use of except clause? How it differs from not in clause?

0 Answers  


What are group functions in query statements in ms sql server?

0 Answers  


How to use "begin ... End" statement structures in ms sql server?

0 Answers  


How to create a testing table with test data in ms sql server?

0 Answers  






What is model database? : SQL Server Architecture

0 Answers  


Does sql server 2000 clustering support load balancing?

0 Answers  


What is not null constraint?

0 Answers  


There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?

1 Answers  


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

0 Answers  


What is a covered index?

0 Answers  


What is transaction server implicit?

0 Answers  


Categories