Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Unanswered: stored procedure insert

    Hi I have a stored procedure ,i need to update the stored procedure that it should not insert any data into table,it should do nothing.

    CREATE PROCEDURE xxx_table(IN IN_PRCS_NM VARCHAR(30),
    IN IN_SEV_CD CHARACTER(1),
    IN IN_SYS_MSG VARCHAR(100),
    IN IN_APP_MSG VARCHAR(100))
    LANGUAGE SQL EXTERNAL ACTION
    INHERIT SPECIAL REGISTERS
    ------------------------------------------------------------------------
    -- SQL Stored Procedure
    ------------------------------------------------------------------------
    P1: BEGIN

    BEGIN NOT ATOMIC

    INSERT INTO xxxxtable
    VALUES (IN_PRCS_NM,
    CURRENT TIMESTAMP,
    USER,
    IN_SEV_CD,
    IN_SYS_MSG,
    IN_APP_MSG);
    END;
    END P1;

    Thanks in Advance

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by coolk411 View Post
    it should not insert any data into table
    One thing to try would be removing the INSERT statement.
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

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