• Krishna1 (6/11/2013)


    create table remarks ( remark varchar(1000)

    create procedure P1 as

    begin

    while loop

    begin

    .....

    insert into remarks ()

    commit

    end

    end

    Here is a shot in the dark based on the extremely vague code snippet above:

    You show a COMMIT statement so there is probably a BEGIN TRANSACTION statement near the beginning of the code inside the WHILE loop. As you are inserting data into the remarks table, this data is not visible to other processes until the COMMIT statement is executed. If you have multiple writes to remarks inside this loop, this why you aren't seeing anything from the other process when you run a select on the table.

    Now, if you really want help you should post the code for the entire procedure.