ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
what is trigger
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is trigger
Answer
# 1
In a DBMS, a trigger is a SQL procedure that initiates an 
action (i.e., fires an action) when an event (INSERT, 
DELETE or UPDATE) occurs. Since triggers are event-driven 
specialized procedures, they are stored in and managed by 
the DBMS. 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 are used to 
maintain the referential integrity of data by changing the 
data in a systematic fashion. 
Each trigger is attached to a single, specified table in 
the database. 

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. 

A trigger can also contain INSERT, UPDATE and DELETE logic 
within itself, so when the trigger is fired because of data 
modification it can also cause another data modification, 
thereby firing another trigger. A trigger that contains 
data modification logic within itself is called a nested 
trigger.
 
Is This Answer Correct ?    11 Yes 1 No
Ranganath
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
can you any body tell me while running BCP Out in instance in sql server 2000 is getting error. Error = [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.?  1
one table has four field id,name,design,salary. i have to find maximum salary .  6
Hi Can any one tell me the Good institute to learn SQL esp for Data Base Testing or SQL from scratch to the proficiency level in Hyederabad and facult also. Thankyou well in advance  6
Let’s say the table in the database is named as TBL_Register. The fields in this table include: 1. User_Name, 2. User_Telephone, 3. Register_Date The field Register_Date stores the current date and time of the registration. Write the SQL statement that inserts the data into the table. Techno-Solutions2
what is difference between having and where clause ?  2
9. Write a query to list a new column with the difference in temp of the cities Delhi and Mumbai, Mumbai and Jammu and soon. Consider the following table : City_id City Temp. 1 delhi 40 2 Mumbai 35 3 Jammu 32 4 Pune 18  2
i want table name basis on column name.  5
Explain Different types of Projects?  1
I have student marks in a student table. I need second highest mark .Then what will the query for this? Wipro23
What is the use of MOVE keyword in restore command IBM2
How to delete duplicate records from a table?(for suppose in a table we have 1000 Records in that we have 200 duplicate Records , so ,how to findout that duplicate Records , how to delete those Records and arranged into sequence order? one more thing that there is no primary key at all) McAfee4
What is difference between Triggers and store procedure?  2
How can we write or define DDL statements in Sql server and DML statements?  2
What is normalization and its forms? Challenger-Financial3
What is a job?  3
what are the joins,primary key,foriegn key, candidate key, super key and expain them? Polaris2
explain different types of jions with examples briefly? Zensar2
Accidentally i deleted my table. How can i get that table?  4
How do we get current date in SQL Server 2000, Oracle, MS Access?  11
How to Execute an Operating System Command From Within SQL Server ?  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com