Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8091435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:03:54+00:00 2026-06-05T20:03:54+00:00

Is there any way to store a session variable in OpenEdge SQL similar to

  • 0

Is there any way to store a session variable in OpenEdge SQL similar to how Oracle’s RETURNING INTO clause works? I need a column value set by a trigger to be available after running an INSERT without having to do another SELECT.

I’m using 10.2B. I’ve looked at the SQL Reference and SQL Development handbooks but didn’t see anything like this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:03:56+00:00Added an answer on June 5, 2026 at 8:03 pm

    There is no such feature and no viable workarounds.

    An infeasible workaround is to construct a special stored procedure specifically for performing the INSERT(s), but that is not a general solution as the INSERT command takes a variable number of parameters (not least of which is which columns and data to populate with), while the stored procedure must have a fixed number of parameters.

    If there existed a SQL function that would return a special session ID that corresponded to the client’s transient connection to the SQL engine, it would be possible to have the client and trigger/stored procedure communicate using a pre-determined table as a request queue (by using the session ID as a key). Unfortunately, according to the documentation there is no such session ID.

    The underlying use case for my question was for a way of implementing auto-incrementing primary keys on INSERTs that would communicate back to the client the inserted ID, so that I would not have to force the client to either

    • provide an immediate value for the PK themselves
    • provide a sequence that corresponds to the table that they are updating

    Unfortunately, due to the lack of support, I’ve had to impose restrictions on the client to provide either one of the above (and lacking either, the code assumes a sequence of <tablename>_id_seq exists).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any easy way of store XML data into core data? Currently, my
is there any way to store duplicate keys in a dictionary? I have a
Is there any way to store the generic parameter type passed in at construction
Is there any way to store file creation time in linux? May be filesystem
I'd like to know if there is any way to store a series of
Is there any way to find out or store which app is accessing an
Is there any way to pre compile stored procedures in SQL Server? My requirement
Is there any way of keeping a result variable in memory so I don't
Is there any way to retrieve the names of the stored procedures by some
Is there any alternate way to create stored procedure without putting all query in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.