0

I'm trying to update something in AS400 from sql server 2000 through openquery like following.

UPDATE
OPENQUERY(odbcname, 'SELECT * FROM "libname"."filename" WITH NC')
SET NBFLAG01=1
WHERE NBFLAG01 <> 1

Here's the error I'm getting.

"OLE DB provider 'MSDASQL' reported an error.  
[OLE/DB provider returned message: Insufficient base table information for updating or refreshing.]
OLE DB error trace [OLE/DB Provider 'MSDASQL' IRowsetChange::SetData returned 0x80004005:   ].
Tomalak
  • 332,285
  • 67
  • 532
  • 628

1 Answers1

1

Try listing your fields within the select. If anything to eliminate that as a problem.

Mike Wills
  • 20,959
  • 28
  • 93
  • 149