Following situation:
SQL-Server 2000
Linked Server to Oracle through MS OLE DB Provider for Oracle
SQL-Server throws an Error when trying to show records in SQL Enterprise Manager:
'IRowset::GetNextRows' returned 0x80004005...
The sql view looked like:
SELECT Fieldname, Fieldname2
FROM ORACLESERVER..NAVISION.SOMETABLE
After changing the sql view to
SELECT *
FROM OPENQUERY(ORACLESERVER, 'SELECT Fieldname, Fieldname2 from NAVISION.SOMETABLE')
the error message disappeared and the Enterprise Manager now shows the records.
The funny thing is that
- the first view worked before and *suddenly* stopped working ..( at least that's what the client says)
- this error only appears when the oracle table is empty (both sql views work correctly when records exist on the oracle side)
Any explanations?
My guess is: buggy msdaora
0
Comments
http://demiliani.com/blog/archive/2009/06/22/6558.aspx
Peter
Now i'm getting a new error since I have switched to OPENQUERY:
'MSDAORA' IRowsetChange::SetData returned 0x80004005
SQL:
UPDATE NAVISION.SOMETABLE WITH (REPEATABLEREAD) SET .....
When the users tries to modify the table from navision
I can't modify the oracle data at all.. (with or without OPENQUERY)