I'm currently trying to delete data held in a table on IBM i, via an openquery using a linked server, with the following command in SSMS;
DELETE FROM OpenQuery(LnkSrv,'SELECT * FROM LibA.Table1')
When running the above, I get an error message.
OLE DB provider "IBMDASQL" for linked server "LnkSrv" returned message "Key column information is insufficient or incorrect. Too many rows were affected by update.". Msg 7345, Level 16, State 1, Line 3 The OLE DB provider "IBMDASQL" for linked server "LnkSrv" could not delete from table "SELECT * FROM LibA.Table1". Updating did not meet the schema requirements.