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

Write SQL queries on Self Join and Inner Join.

0 Answers   Aspiring Minds,


what is normalization? Explain different levels of normalization? : Sql server database administration

0 Answers  


What objects does the fn_my_permissions function reports on? : sql server security

0 Answers  


table:employee EID ENAME MID(manager ids) 101 rama null 102 sita 101 103 siva 101 104 ganesh 103 . . . . . . for 103 ID the manager ID is 101(RAMA) and for 104 manager is SIVA if i give employee id (EID) you have to tell the manager for that EID write query? eample:if i give 102 .The query output should be manager for 102 ID that it should print RAMA as output

7 Answers  


do you know how to configure db2 side of the application? : Sql server database administration

0 Answers  






What is the difference between composite index and covering index?

0 Answers  


Can an automatic recovery be initiated by a user?

0 Answers  


What is a SQL Server Temporary Table?

1 Answers   Wipro,


In which tcp/ip port does sql server run? Can it be changed?

0 Answers  


What are the types of indexing?

0 Answers  


Can you explain full-text query in sql server?

0 Answers  


Explain what is raid and what are different types of raid levels?

0 Answers  


Categories