use of Trigger in SQL

Ads
 

use of Trigger 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

Ads









Related Tutorials/Questions & Answers:
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
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
Advertisements
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 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
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, if a trigger monitoring for changes to a column of the table
Create Before Insert Trigger in SQL
Create Before Insert Trigger in SQL       The Create Before Insert Trigger in SQL fires... The given Tutorial describe you a code on 'Create Before Insert Trigger in SQL
SQL Use
SQL Use       SQL Use... The Tutorial illustrate an example from 'SQL Use'. To understand and grasp the 'SQL Use' we create a database 'komal' using create database keyword
can i use trigger to insert data within a time period ?
can i use trigger to insert data within a time period ?  Hello sir, i... this trigger concept the data will be insert to each Employee's ID. Plz sir help me regarding this problem.how to solve this issue and how i will use this trigger
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
What is the use of Hibernate Native SQL?
What is the use of Hibernate Native SQL?  What is the use of Hibernate Native SQL? How it is useful in database access programming using the Hibernate framework? Thanks   Hibernate Native query is used used to run SQL
trigger
trigger  write a trigger to see every manager must be highest salary
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
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... a example from 'Create After Insert Trigger in SQL'. In this Example, we
Trigger
Trigger       Mysql Trigger After Delete The Tutorial illustrate an example from 'Trigger After Delete' in Mysql. To understand
why we use ^ operator in sql, and what is the meaning of that operator?
why we use ^ operator in sql, and what is the meaning of that operator?  why we use ^ operator in sql, and what is the meaning of that operator
What is the use of MySQL, MS SQL in Web Hosting paradigm?
What is the use of MySQL, MS SQL in Web Hosting paradigm?  I am.... For now I want to learn the things about MySQL, MS SQL in Web hosting. What is the use of MySQL, MS SQL in Web Hosting paradigm? Thanks   Let me explain
how to use sequence as a generator class in hibernate for ms sql
how to use sequence as a generator class in hibernate for ms sql  Hi deepak, I have following requirement, I have to use sequence as a generator class for ms sql database. Do we need to create an sequence in mssql prior
SQL
SQL Trigger query  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed... customized database management system. For example, you can use triggers to: 1
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... a highly customized database management system. For example, you can use triggers
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... a highly customized database management system. For example, you can use triggers
SQL
Trigger in SQL  Why we use the Trigger and what it's uses?   A database trigger is procedural code that is automatically executed... customized database management system. For example, you can use triggers to: 1
How to use sum sql query to process the summed data into a list?
How to use sum sql query to process the summed data into a list?  Im get stuck to get sum of data in database. Then i need to list the summed of data in jsp page. For example, i have a database named family that store
How to use sum sql query to process the summed data into a list?
How to use sum sql query to process the summed data into a list?  Im get stuck to get sum of data in database. Then i need to list the summed of data in jsp page. For example, i have a database named family that store
use struts 1.0 to view sql table value on JSP page
use struts 1.0 to view sql table value on JSP page  Here i am using struts 1.0 to view my sql table values on jsp page. But the problem is when i append the value in bean then i find the last row of table is shown repetedly. Any
use struts 1.0 to view sql table value on JSP page
use struts 1.0 to view sql table value on JSP page  Here i am using struts 1.0 to view my sql table values on jsp page. But the problem is when i append the value in bean then i find the last row of table is shown repetedly. Any
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
example of before insert trigger in mysql
example of before insert trigger in mysql  Hi, How to create a simple before insert trigger in MySQL? Thanks   Hi, The before insert trigger is executed before saving the data into database. Trigger is stored

Ads