Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 8th, 2004, 12:35 AM
Authorized User
 
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to arshad mahmood
Default Trigger

How many types of Triggers?

arshad mahmood
__________________
arshad mahmood
Reply With Quote
  #2 (permalink)  
Old June 24th, 2004, 03:57 AM
Authorized User
 
Join Date: Jun 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

arshad ,

i have never heard of triggers in C++/VC++

i think they are part of ORACLE/PL/SQL

Sudhan

Reply With Quote
  #3 (permalink)  
Old June 24th, 2004, 04:20 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is not my area but Triggers are also part of SQL SERVER

  You can create triggers on tabls and views

basically, there are 3 types of triggers

  Insert, Update, Delete
  And
  'Instead Of' is keyword that you can use with all above (3) types

You can access Insert,Deleted as

     If(select col from inserted/deleted where col = 1)
          begin
             raiserror('You can not insert/delete this record.',16,3)
             return
          end
Actually, Insert, Update , Delete fire after insert ... it mean you may say these are AFter Insert, After Update, and After Delete
   'After' are delfault tirggers....

   But you need to know about Binery '&' Operator to know about updated columns.... check out BOL ... (Books OnLine)


Hope it will help you...

Stay Beautiful,

Abdul Salam


There is no moving creature on Earth whose sustenance is not provided by Allah. He knows its living and its resting place,
and all that is recorded in a glorious Book. (Al-Quran)
Reply With Quote
  #4 (permalink)  
Old June 24th, 2004, 06:26 AM
Authorized User
 
Join Date: Jun 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to silver_cuts Send a message via Yahoo to silver_cuts
Default

Hi arshad,

well i had used triggers on tables,views and even synonyms earlier when i used ORACLE .. i have never used SQL server before ...

but thanks ... this will help me when i use it in future

Sudhan.

Reply With Quote
  #5 (permalink)  
Old June 24th, 2004, 07:10 AM
Authorized User
 
Join Date: Jun 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

:)] hope ...

Stay Beautiful,

Abdul Salam
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger fhillipo SQL Server 2000 1 March 20th, 2007 07:44 AM
Trigger Help monika.vasvani SQL Language 2 March 1st, 2007 06:59 AM
Trigger ! minhtri Pro VB Databases 2 June 23rd, 2004 02:27 AM
Trigger arshad mahmood SQL Language 2 May 12th, 2004 05:16 AM
Using instead of trigger dmr999 SQL Server 2000 1 November 29th, 2003 02:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.