Hi,
here I am back with another error
So...I'm writing some data (from a Raspberry PI3) into a SQL Server (Express version, using TMSSQLConnection) table located in a Windows machine.
To this table is present a trigger (fired during an INSERT, not written by me) that performs some operations with the inserted data.
Everytime I write a record into this table (using TSQLTransaction.Commit) the error in the subject appears.
If I disable the trigger everything works but if I insert a record from a Windows program (with the trigger enabled) the operation is executed without errors.
Is it a bug of the TMSSQLConnection+TSQLTransaction Raspberry components?
I'm using FreeTDS libraries.
Searching on the internet I found that to avoid this error I should activate "TSQLQuery.PacketRecords=-1" but I'm not using a TSQLQuery to insert records but "TMSSQLConnection.ExecuteDirect" command.
I tried also to save records into a different table where there is a trigger that writes the inserted record into the other table but the error still appears.
What's the reason of this error?
Thank you, regards.
Roberto