Results 1 to 4 of 4

Thread: global variable

  1. #1
    Join Date
    Sep 2002
    Posts
    41

    global variable

    Is there a way to declare a global variable that can be used in seperate stored procedures?

    I have a statistics table that tracks the inserts and updates for several stored procedures.

    I need to have the procedure_A run and insert a count of inserted and updated rows.

    Procedure_B needs to identify the row inserted by procedure_A and update the columns with a count of how many it inserted and updated.

    Procedure_C needs to do the same as procedure_b.

    I want to pass a global variable with the id of the row inserted by procedure_A to the rest of the procedures so that they will know which row to update. How do I do this? Can I?


    Thanks.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Not as I aware.

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can create a temp table with one column in it and save the data in that. You must declare the temp table in the top level procedure though.

Posting Permissions

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