robsuttonjr
MIS
When I use sqlexec to insert into a MS Sql server table use manual transactions, my table is locked until I use sqlcommit. I can't have the table being locked like this, any thoughts how to fix this? I am using the sample code found in FoxPro 7 help for SQLCOMMIT().
= SQLSETPROP(gnConnHandle, 'Transactions', 2) && Manual transactions
= SQLEXEC(gnConnHandle, "INSERT INTO authors (au_id, au_lname);
VALUES ('aupoe', 'Poe')"
&& Modify the authors table
= SQLCOMMIT(gnConnHandle) && Commit the changes
= SQLSETPROP(gnConnHandle, 'Transactions', 2) && Manual transactions
= SQLEXEC(gnConnHandle, "INSERT INTO authors (au_id, au_lname);
VALUES ('aupoe', 'Poe')"
= SQLCOMMIT(gnConnHandle) && Commit the changes