Results 1 to 15 of 15
Thread: What is trigger?
-
05-12-2011, 06:41 AM #1
What is trigger?
I know that A trigger is a special kind of stored procedure that is invoked whenever an attempt is made to modify the data in the table it protects. Modifications to the table are made ussing INSERT,UPDATE,OR DELETE statements.
For example, if you have a table with a field that contains the date this record has been modified, you could set a trigger on updates and inserts that will set this field to the current date so you wont have to handle this field in your application code.
Triggers are used to enforce data integrity and business rules such as automatically updating summary data. It allows to perform cascading delete or update operations. If constraints exist on the trigger table,they are checked prior to the trigger execution. If constraints are violated statement will not be executed and trigger will not run.Triggers are associated with tables and they are automatic . Triggers are automatically invoked by SQL SERVER. Triggers prevent incorrect , unauthorized,or inconsistent changes to data.
-
05-12-2011, 10:08 AM #2
Sophomore
- Join Date
- Apr 2011
- Posts
- 79
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Feedback Score
- 0
Triggers are programs that execute in acknowledgment to changes in table abstracts or assertive database events. There is a predefined set of contest that can be "hooked" with a trigger, enabling you to accommodate your own processing with that of the database.
-
04-03-2012, 02:52 AM #3
Sophomore
- Join Date
- Mar 2012
- Posts
- 144
- Thanks
- 0
- Thanked 1 Time in 1 Post
- Feedback Score
- 0
Triggers are the programs that is used to store the procedure.. Trigger is part of mysql...
-
04-16-2012, 08:55 AM #4
Freshman
- Join Date
- Apr 2012
- Location
- New York
- Posts
- 18
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Trigger is a SQL procedure that initiates an action, when an event (INSERT, DELETE or UPDATE) occurs.
-
07-16-2012, 01:34 AM #5
Freshman
- Join Date
- Jun 2012
- Posts
- 25
- Thanks
- 1
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Tigger is a PL/SQL Block and get executed when any DML operation Performed like Insert Delete and Update
-
07-30-2012, 05:26 AM #6
Sophomore
- Join Date
- Jul 2012
- Posts
- 131
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Nice! Thanks for sharing this post.Keep posting these type of informative post.
-
08-08-2012, 05:53 AM #7
Freshman
- Join Date
- Aug 2012
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
trigger is program that fair automatically.
-
08-08-2012, 05:55 AM #8
Freshman
- Join Date
- Aug 2012
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
u defined too good but it is not satisfactory..............
-
08-28-2012, 02:50 AM #9
Freshman
- Join Date
- Aug 2012
- Posts
- 18
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Activates can be considered as just like saved techniques in that both contain step-by-step reasoning that is saved at the data source level. Stored techniques, however, are not event-drive and are not connected to a particular desk as triggers are. Stored techniques are clearly implemented by invoking a CALL to the process while triggers are unquestioningly implemented. Moreover, triggers can also perform saved techniques.
-
08-31-2012, 04:09 AM #10
Freshman
- Join Date
- Aug 2012
- Posts
- 29
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
trigger is a procedural code which executes in response to events occured on table or view like insert, update, deletion of records from table or similar events
-
11-03-2012, 08:48 AM #11
Trigger is a predefined event base procedure which are fires when some event occures. They are useful in events like log-in, log-off, insertion, deletion and updation in table.
-
03-15-2013, 07:59 AM #12
Freshman
- Join Date
- Dec 2012
- Posts
- 21
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
It is a stored procedure that is invoked when we do insert, delete and update any record from the table.
-
03-19-2013, 08:16 AM #13
Freshman
- Join Date
- Mar 2013
- Posts
- 39
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Triggers are the programs that are fired \ initiates automatically when an event tooks place.They make positive changes in the program in order to make programm more easier.
-
04-29-2013, 09:06 AM #14
Freshman
- Join Date
- Apr 2013
- Location
- canada
- Posts
- 35
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
Triggers are stored procedures that are fired automatically when a program runs.
-
05-02-2013, 01:17 PM #15
A trigger is a set of SQL statements that automatically fires off an action when a specific operation occurs like data changing in table. Trigger is applied for DML statements in SQL server 2000/2005 A trigger consists of an event and an action.we only use them when we need to perform a certain action as a result of an INSERT, UPDATE or DELETE and ad hoc SQL is used.




Reply With Quote

