Results 1 to 15 of 15
  1. #1
    Padsall's Avatar
    Padsall is offline Sophomore
    Join Date
    May 2011
    Location
    Pakistan
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default 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.

  2. #2
    aldrichkelly is offline Sophomore
    Join Date
    Apr 2011
    Posts
    79
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    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.

  3. #3
    jassmee is offline Sophomore
    Join Date
    Mar 2012
    Posts
    144
    Thanks
    0
    Thanked 1 Time in 1 Post
    Feedback Score
    0

    Default

    Triggers are the programs that is used to store the procedure.. Trigger is part of mysql...

  4. #4
    DerickThomas is offline Freshman
    Join Date
    Apr 2012
    Location
    New York
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Trigger is a SQL procedure that initiates an action, when an event (INSERT, DELETE or UPDATE) occurs.

  5. #5
    devjohndevon is offline Freshman
    Join Date
    Jun 2012
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Tigger is a PL/SQL Block and get executed when any DML operation Performed like Insert Delete and Update

  6. #6
    stevetaylor040 is offline Sophomore
    Join Date
    Jul 2012
    Posts
    131
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Nice! Thanks for sharing this post.Keep posting these type of informative post.

  7. #7
    sandy712 is offline Freshman
    Join Date
    Aug 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    trigger is program that fair automatically.

  8. #8
    sandy712 is offline Freshman
    Join Date
    Aug 2012
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    u defined too good but it is not satisfactory..............

  9. #9
    Edgarwbrown is offline Freshman
    Join Date
    Aug 2012
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    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.

  10. #10
    deepsea65 is offline Freshman
    Join Date
    Aug 2012
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    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. #11
    ronitmathurseo's Avatar
    ronitmathurseo is offline Sophomore
    Join Date
    Jul 2012
    Posts
    136
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    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.

  12. #12
    amyk is offline Freshman
    Join Date
    Dec 2012
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    It is a stored procedure that is invoked when we do insert, delete and update any record from the table.

  13. #13
    johnboucher040 is offline Freshman
    Join Date
    Mar 2013
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    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.

  14. #14
    johnsonsteve040 is offline Freshman
    Join Date
    Apr 2013
    Location
    canada
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    Triggers are stored procedures that are fired automatically when a program runs.

  15. #15
    sunilmkt's Avatar
    sunilmkt is offline Freshman
    Join Date
    Dec 2012
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS