-
Misbah Yasin
- PowerBuilder
- Thursday, 29 May 2025 02:24 PM UTC
I am working on a program where the table (table1) being inserted into has a trigger in which it inserts into a 2nd table (table2) as well. This is causing an issue with retrieving the identity value - the identity value for the table2 is being displayed after update when it should show the value for table1.
Behind the scenes, table1 is correctly getting the identity, but table1 has many child tables that then save with the identity used in table2 - which is incorrect.
I was wondering if anyone has found a workaround for this?
I found this page - https://docs.appeon.com/pb2022/connection_reference/Identity.html - but I'm not using either SNC SQL Native Client for Microsoft SQL Server or MSOLEDBSQL Microsoft OLE DB Driver for SQL Server.
I am on Powerbuilder 2022 R3 3356 using ODB ODBC msql database connection.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.