Home Answers Viewqa SQL What is Trigger in SQL

 
 


Ajay Tiwari
What is Trigger in SQL
1 Answer(s)      a year and 2 months ago
Posted in : SQL

Why we use the Trigger and what it's uses?

View Answers

March 15, 2012 at 4:37 PM


A database trigger is procedural code that is automatically executed in response to certain events on a particular table in a database. Triggers can restrict access to specific data, perform logging, or audit data modifications. Triggers supplement the standard capabilities of your database to provide a highly customized database management system. For example, you can use triggers to:

1)Automatically generate derived column values.

2)Enforce referential integrity across nodes in a distributed database

3)Enforce complex business rules

4)Provide transparent event logging

5)Provide auditing

6)Maintain synchronous table replicates

7)Gather statistics on table access

8)Modify table data when DML statements are issued against views

9)Publish information about database events, user events, and SQL statements to subscribing applications

10)Restrict DML operations against a table to those issued during regular business hours

11)Enforce security authorizations

12)Prevent invalid transactions









Related Pages:
What is Trigger?
What is Trigger?  What is Trigger
What is Trigger?
What is Trigger?  What is Trigger?   Hi, A trigger... and DELETE. The difference between a trigger and a stored procedure is that a trigger is activated or called when an event happens in a database table, a stored
MySQL After Trigger
MySQL After Trigger This example illustrates how to create the trigger and what is the use it. In this example we create a table "Roseindia"...' and 'description'. A trigger is defined to activate when an INSERT, DELETE, or UPDATE
using trigger - SQL
-update-trigger.shtml http://www.roseindia.net/sql/trigger/mysql-trigger-after...using trigger  sir i want to use this trigger in ado.net. how it is possible ? Create trigger tr1 on student after update as begin update m
Trigger
Trigger       Mysql Trigger After Delete The Tutorial illustrate an example from 'Trigger After Delete' in Mysql. To understand
SQL
SQL  1)What is ref cursor? Where u can use this ref cursor? 2)What is difference between procedure and function? 3)What is trigger? How many types of triggers are there? 4)What is cursor? Explain different types of Cursors
Create Delete Trigger in SQL
Create Delete Trigger in SQL       Create Delete Trigger in SQL fire this trigger before... The Tutorial illustrate an example from 'Create Delete Trigger in SQL
SQL
SQL Trigger query  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed..., user events, and SQL statements to subscribing applications 10)Restrict DML
SQL
What is Trigger in SQL  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed... events, user events, and SQL statements to subscribing applications 10)Restrict DML
SQL
Trigger in SQL  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed... events, and SQL statements to subscribing applications 10)Restrict DML
SQL
use of Trigger in SQL  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed..., user events, and SQL statements to subscribing applications 10)Restrict DML
Create Delete Trigger in SQL
Create Delete Trigger in SQL       Create Delete Trigger in SQL fire this trigger before... The Tutorial illustrate an example from 'Create Delete Trigger in SQL
Create After Update Trigger in SQL
Create After Update Trigger in SQL       After Trigger in SQL is fired before update... illustrate an example from 'Create After Update Trigger in SQL'. In order
How to trap Trigger Error - SQL
How to trap Trigger Error  Hi Guys, Can you please help with my problem?.. Is there a way in where I can trap all SQL error and place it under... NVARCHAR(2000) ) select * froM ERROR_LOG CREATE OR REPLACE TRIGGER
Create Before Insert Trigger in SQL
Create Before Insert Trigger in SQL       The Create Before Insert Trigger in SQL fires the trigger... Tutorial describe you a code on 'Create Before Insert Trigger in SQL'. To grasp
Create After Insert Trigger in SQL
Create After Insert Trigger in SQL       Create a Trigger is a special kind of stored procedure... from 'Create After Insert Trigger in SQL'. In this Example, we create
Create Before Update Trigger in SQL
Create Before Update Trigger in SQL       Create Before Update Trigger in SQL is used in SQL... Update Trigger in SQL' . To understand this example we create a table 'Stu
Create Before Update Trigger in SQL
Create Before Update Trigger in SQL       Create Before Update Trigger in SQL is used in SQL... Update Trigger in SQL' . To understand this example we create a table 'Stu
Create Before Insert Trigger in SQL
Create Before Insert Trigger in SQL       The Create Before Insert Trigger in SQL fires the trigger... Tutorial describe you a code on 'Create Before Insert Trigger in SQL'. To grasp
Create After Update Trigger in SQL
Create After Update Trigger in SQL       After Trigger in SQL is fired before update... illustrate an example from 'Create After Update Trigger in SQL'. In order
Stored Procedure and Trigger
Stored Procedure and Trigger  hello, What is the difference between Stored Procedure and Trigger ?   hii, Triggers once defined are called automatically, there can be no explicit invocation Stored procedure has
trigger
trigger  write a trigger to see every manager must be highest salary
trigger
trigger  write a trigger program before insert into salary that it must not below Rs 1000
trigger
trigger  write a trigger program before insert into salary that it must not below Rs 1000
Create After Insert Trigger in SQL
Create After Insert Trigger in SQL       Create a Trigger is a special kind of stored procedure... from 'Create After Insert Trigger in SQL'. In this Example, we create
PHP Trigger Error
PHP Trigger Error PHP trigger_error generates an error, warning, notice message. Basic format of the trigger_error is as follows: boolean trigger_error... ) This method is used to trigger an user level error message, it can
What's an SQL injection?
What's an SQL injection?  What's an SQL injection
What is the use of DESC in SQL?
What is the use of DESC in SQL?  What is the use of DESC in SQL
sql
difference between sql and oracle  what is the difference between sql and oracle
SQL
SQL  hii What is sql?   hello, SQL, which stands for Structured Query Language, is a special-purpose language used to define, access, and manipulate data. SQL is non procedural, meaning that it describes
What is the Delete Statements in SQL?
What is the Delete Statements in SQL?  What is the Delete Statements in SQL?   Hi, Here is the answer, Delete statement in SQL is used to delete partial/all data. Especially delete statement is useful in case
What is meant by embedded SQL?
What is meant by embedded SQL?  What is meant by embedded SQL?   Hi, Embedded SQL statements are embedded with in application program and are prepared during the program preparation process before the program
SQL
SQL   1)How to Store 1000 records in Oracle object. 2)Write a query for calculate highest, 3rd Highest & 10th highest salary from emp teble. 3)What is Sequence. 4)How to use rowid in Sql. 5)What is Views. 6)How
SQL
SQL  What is Join & Subqueries.As performance basis which is preferable
SQL
SQL  What is the purpose of the triggers? How you are going to debug the procedure
SQL
SQL  what data type we use for the uploading the video and image files in MySQL server 2008
SQL
SQL  1)What is self Join and when we have to use, give me the scenario? 2)Why we have to use Indexes
SQL - SQL
SQL  Jus c da case we hve certain images in some folder or some area in sql can we create trigger or procedure so dat in front like in asp page while clicking image it will be showed in page ...... ...I mean writing code for each
More About Simple Trigger
More About Simple Trigger       Simple trigger can be used to one shot execution or fire a job... be used for creating a trigger which fires every some specified time (20 seconds
sql - SQL
order by SQL Query  What is order by in SQL and when this query is used in SQL?Thanks!  Hi,In case of mysql you can user following query.Select salary from salary_table order by salary desc limit 3,1Thanks
sql - SQL
. 2 SQL tells the database what to do (declarative) while PL/SQL tell... want query? 4.what is the diffrence between sql and plsql?  Hi Friend... HAVING n>1; Difference between SQL and PL/SQL: SQL is a structured query
Sql Server - SQL
sql server trigger example  Can any one tell me the live example of triggers in SQL Server?   if u click pistal trigger ,it auotmatically shoot bullet it's like newtons 3rd law (every action s having an equal reaction
sql server - SQL
sql server  what is SQL server? & what is oracle? are they same
sql - SQL
sql  i have fields as qno,subid,que,op1,op2,op3,op4,ans; and i am having 90 rows in that table .question is am willing to arragnge all the entries in ascending order 1 to 90 as per col qno ? what could i do ?   Hi
sql - SQL
sql  HI good morning.. I want store the image into database table.. How is it possible .. this is done in Servlets please send the example and also what is the data type for image in database.. pleas send
What?s the maximum size of a row in SQL table?
What?s the maximum size of a row in SQL table?  What?s the maximum size of a row in SQL table?   Hi, The maximum Row Size is 8060 Bytes in a sql table. Thanks
MySQL - SQL
MySQL  how to set a time to repeat a trigger in Mysql?  Hi Friend, Please visit the following links: http://www.roseindia.net/mysql/mysql5/triggers.shtml http://www.roseindia.net/sql/trigger/mysql-time
An SQL Locator.
An SQL Locator.  What is an SQL Locator
What is the difference between static and dynamic SQL?
What is the difference between static and dynamic SQL?  What is the difference between static and dynamic SQL?   Hi, Static SQL is SQL... be hard-coded into the application.Static SQL is usually targeted at a specific

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.