Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa SQL Trigger in SQL

Have Programming Question? Ask it here!
 
 
 


Ajay Tiwari
Trigger in SQL
1 Answer(s)      2 years and a month ago
Posted in : SQL


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


Advertisement
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 Tutorials/Questions & Answers:
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
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 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
trigger
trigger  write a trigger to see every manager must be highest salary
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
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
Trigger
Trigger       Mysql Trigger After Delete The Tutorial illustrate an example from 'Trigger After Delete' in Mysql. To understand
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
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
throw exception in mysql trigger
throw exception in mysql trigger  throw exception in mysql trigger
MySQL After Trigger
MySQL After Trigger This example illustrates how to create the trigger...' and 'description'. A trigger is defined to activate when an INSERT, DELETE, or UPDATE statement executes for the associated table. A trigger can be set to activate either
trigger after insert for deletion
trigger after insert for deletion   String query2 = "create TRIGGER trig after insert on "cart" + " FOR EACH ROW... = st1.executeUpdate( query2); i have to do the above trigger operation, but i'm stuck
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
Mysql Time Trigger
Mysql Time Trigger       Mysql Time Trigger is fired when a specified event is occurred. The trigger event can be before trigger, after trigger  and instead of trigger
Mysql Time Trigger
Mysql Time Trigger       Mysql Time Trigger is fired when a specified event is occurred. The trigger event can be before trigger, after trigger  and instead of trigger
Quartz Trigger - XML
Quartz Trigger  how to write a quatz trigger to fire mails at every 59th minute of every hour.......is it like this (0 59 * * * ?)  Hi friend, Quartz Job scheduler is so flexible that it can be used with your
Writing a trigger for an userdefined datatype
Writing a trigger for an userdefined datatype  i have a user defined datatype in EMP table like COLUMNNAME:ADDRS_TYPE where ADDRS_TYPE have the following columns DATATYPE :ADDRESS VARCHAR2(136) V_CODE VARCHAR2(8) T_CODE
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
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
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
a trigger to call .bat file oracle
a trigger to call .bat file oracle   hey,pls help mei want to know that can we call java/.bat file from plsql/proceudre /trigger   ... java/.bat file from plsql/proceudre /trigger mdakbark@gmail.com
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
Mysql Trigger After Insert
Mysql Trigger After Insert       Mysql Trigger After Insert fired the trigger after you... The Tutorial illustrate an example from Mysql Trigger After Insert. To understand
Mysql Trigger After Delete
Mysql Trigger After Delete       Trigger in Mysql fired trigger automatically after you... an example from 'Trigger After Delete' in Mysql. To understand this example, we
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
Example of Cron Trigger
Example of Cron Trigger     ... Trigger example and by this, you can better understand the working of cron trigger... a Quartz application with the help of cron trigger. For this, we have to make
Quartz trigger dropping automatically - Java Beginners
Quartz trigger dropping automatically  In our application we are using simple trigger for scheduling. Suddenly the trigger started dropping off.... As per our understanding quartz trigger will not get dropped off
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
sql
difference between sql and oracle  what is the difference between sql and oracle
sql
sql  how to get first row in sql with using where condition in sql? how to get last row in sql with using where condition in sql
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
sql
sql  I want interview sql questions   Please visit the following link: SQL Tutorials
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
Sql
Sql  how to find maximum of a101,a102,a103 from a table in sql
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
sql
sql  returning value from a store procedure in sql with example   Please visit the following links: http://www.roseindia.net/mysql/mysql5/stored-procedures-and-functions.shtml http://www.roseindia.net/sql/create
Mysql Trigger after Update
Mysql Trigger after Update       Mysql Trigger after  Update fired automatically after we perform... an example from 'Mysql Trigger after Update'. To grasp 'Mysql Trigger after Update
SQL
SQL  In my computer i have microsoft sql 2008.how can i set that in the cmd.i want to use that in cmd.what is the default username and password
SQl
SQl  . Given two tables: table1(player, groundname, numcenturies); table2(ground_name, country); Write and SQL query for the following: " Select all the players from table1 who has
 

 

 

DMCA.com