- Hans Groeneveld
- PowerBuilder
- Friday, 23 July 2021 01:10 PM UTC
Hi,
I have a SQL Anywhere 17 database with a lot of tables whit a "uniqueidentifier" as primairy key, with de default value newid(). In the the datawindow I set in the Update properties the "Identity Column" to the PK column.
When I insert a row in the datawindow (in Painter and in the program) and fill all the columns and press Update, the PK value is filled by a "0", not the Guid that is generated by the database.
How should I fix that problem?
When I retrieve the row first after the Insert then it works, but that is not how it shouls work and gives a lot off hassle.
Kind Regards
Hans
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.