Results 1 to 5 of 5

Thread: Trigger Check?

  1. #1
    Join Date
    Feb 2007
    Posts
    33

    Question Unanswered: Trigger Check?

    <Code>
    CREATE TRIGGER [CSITSS].[tdecker].[FB401BV_TRIGGER] ON [CSITSS].[dbo].[Fbbatch] FOR UPDATE [Status]

    AS

    DECLARE @Status Char (12)
    DECLARE @RC int
    DECLARE @Batch int
    SET @Status = (Select [Status] FROM INSERTED)

    IF @Status = 'Released'
    BEGIN
    SET @Batch = (Select [Batch] FROM INSERTED)

    EXEC @RC = [CSITSS].[tdecker].[GLP_FB401BV_BATCH] @Batch

    END

    </Code>

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Trigger Check?
    What happens when you try to compile this on your ORACLE DB system?
    What OS name & version?
    What version of Oracle to 4 decimal places?
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Feb 2007
    Posts
    33

    Question I haven't tried it yet?

    I haven't tried it yet and I don't know. I'll check the version and get back to you.

    Does anyone see any reason why it wouldn't work?

    Is the Syntex generally correct?

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >Is the Syntex generally correct?
    IMO, no but what do I know.
    The proof is in the pudding.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  5. #5
    Join Date
    Nov 2003
    Posts
    2,933
    Provided Answers: 12
    Is the Syntex generally correct?
    Not for Oracle, no.
    It is definitely not a valid Oracle PL/SQL code.

    The code you posted looks like SQL Server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •