Hello Community !
I am working with B4A, JRDC2 and MS SQL Server.
I am accessing the DB with several devices (so that table insert commands can come from several devices).
I would like to know if there is a reliable way to implement the following:
With the insert command, I want to insert the LAST id (primary key in the table) in a column:
The insert command in the B4J server-config file looks like (e.g.):
INSERT INTO ORDERS (ID_PROD,PRODNAME,ID_PARENT) VALUES (?,?,?)
Now ID_PARENT should be the id of the last entry in the table (made of the the device which also makes the following entry.) Any ideas how to realize this ?
Thank you very much.
Regards
h725 (son of h724)
I am working with B4A, JRDC2 and MS SQL Server.
I am accessing the DB with several devices (so that table insert commands can come from several devices).
I would like to know if there is a reliable way to implement the following:
With the insert command, I want to insert the LAST id (primary key in the table) in a column:
The insert command in the B4J server-config file looks like (e.g.):
INSERT INTO ORDERS (ID_PROD,PRODNAME,ID_PARENT) VALUES (?,?,?)
Now ID_PARENT should be the id of the last entry in the table (made of the the device which also makes the following entry.) Any ideas how to realize this ?
Thank you very much.
Regards
h725 (son of h724)
Last edited: