I'm pulling my hair out again.
I'm connecting to a server A which is connected to a linked server B for security reasons, to insert and update 1 table.
In SQL Manager I can do what needs to be done (read, update, insert, delete).
In PB2022 (build 1892) database painter I can do what needs to be done (read, update, insert, delete).
I take these connection parameters letter per letter (and the update, insert or delete statement) and connect to the server, OK, read the table OK
update, insert, delete NOT OK, I get this error (that is the way the linked server is connected not my app connection to the DB):
SQLSTATE = 01000
Microsoft OLE DB Driver 19 for SQL Server
OLE DB provider "SQLNCLI11" for linked server "LinkedServer" returned message "No transaction is active.".
What can possibly be different from the PB painter vs. the application?
I've tried all ways to connect (SNC Native, MSOLEDB, ODBC, ADO) all have the same behavior.
I've tried via datawindow, via SQL in code, via stored procedure, via OPENQUERY nothing works.
For the linked server RPC, RPC Out are True, Enable Promotion of Distributed Transaction is True (also tried with them off)
Is PB setting some extra parameters that are not displayed in the connection syntax?
I tried setting AutoCommit = TRUE and ... it works !!!
Thank you!