Linked Object to SQL-View to Oracle Table through MSDAORA

wakestarwakestar Member Posts: 207
edited 2009-07-10 in SQL General
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

Comments

  • pdjpdj Member Posts: 643
    Could it be because of a .NET upgrade?
    http://demiliani.com/blog/archive/2009/06/22/6558.aspx
    Regards
    Peter
  • wakestarwakestar Member Posts: 207
    Microsoft .NET Framework 3.5 SP1 - Update "KB963707" was installed... 1st of july :-k :-k :-k


    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
  • wakestarwakestar Member Posts: 207
    Is there a way to get rid of the 'REPEATABLEREAD' and replace with something similar which Oracle accepts?

    I can't modify the oracle data at all.. (with or without OPENQUERY)
Sign In or Register to comment.