G
Guest
im updating a header and detail table with an update constraint. sqlcmd1 is
used to update header, sqlcmd2 is for detail. both cmd runs in one
sqltransaction.
my problem is my second sqlcmd catches a constraint error when updating the
detail table. is it because my record in the header table is not yet commited
and my foreignkey in the detail table requires that the primarykey already
exists in the header table?
is there a way to implement sqltransaction in header,detail table with
update constraint? how?
used to update header, sqlcmd2 is for detail. both cmd runs in one
sqltransaction.
my problem is my second sqlcmd catches a constraint error when updating the
detail table. is it because my record in the header table is not yet commited
and my foreignkey in the detail table requires that the primarykey already
exists in the header table?
is there a way to implement sqltransaction in header,detail table with
update constraint? how?