Re: Oracle und MS-SQL

From: Elmar Boye (ElmarB_at_gmx.net)
Date: 06/19/04


Date: Sat, 19 Jun 2004 10:01:49 +0200

Hallo Carsten,

Carsten Albert <carsten.albert@w-s-r.de> schrieb ...
> DB1: Oracle 8.1.7

nicht ganz mein Ding dieser Tage... aber versuchen wirs trotzdem..

> DB2: MSSQL 2000
>
> Wenn ich über SQL QueryAnalyzer oder EnterpriseManager mir den View
> anzeigen lasse, bekomme ich alle Daten angezeigt. Mit dem gleichen
> Query-String in meiner Anwendung bekomme ich folgende Fehlermeldung:
>
> ARERR [552] Failure during SQL operation to the database : Die
> ROLLBACK TRANSACTION-Anforderung hat keine entsprechende BEGIN
> TRANSACTION. (SQL Server 3903)

Könnte es sein dass Du einen Keyset Recordset (ADO oder ODBC)
für die Abfragen verwendest? Da könnte Dir etwas ähnliches ins
Gehege kommen wie http://support.microsoft.com/?kbid=198265
beschreibt. Der ist zwar für reinen SQL Server Zugriff längst
beseitigt, nur wird im Falle eine Keyset Cursor eben nämliches
sp_prepare ausgeführt und das mag den Oracle Provider verwirren.

Probier mal ob das Problem verschwindet wenn Du einen ForwardOnly
ReadOnly Recordset (bei ADO für adUseServer) verwendest oder aber
bei ADO die Clientseitige Cursorbibliothek.

> Ich habe auch schon vor die "select"-Abfrage die Zeile "BEGIN TRAN
> xyz" eingefügt und nach dem "select" die Zeile "COMMIT TRAN xyz".

Das lässt sich so nicht beeinflussen. Prüfen solltest Du zum einen ob
für Oracle implizite Transaktionen aktiviert sind. Helfen könnte evtl.
eine Variation der Vorgehen wie sie in
    http://support.microsoft.com/?kbid=7391
    INF: Troubleshooting Linked Server Error 7391
unter "Configuration Issues" beschrieben sind.
Oracle spezifisch gibts noch einige Hinweise in
http://support.microsoft.com/?kbid=280106
HOW TO: Set Up and Troubleshoot a Linked Server to Oracle in SQL Server

Gruss
Elmar



Relevant Pages

  • Re: I cant find a SETUP.EXE in the SQL Plus Client ??
    ... someone else's server for testing some SELECT statements I'm ... free client because I don't own the Oracle license. ... SQL statements. ... There is no documentation with that download. ...
    (comp.databases.oracle.tools)
  • Re: I cant find a SETUP.EXE in the SQL Plus Client ??
    ... someone else's server for testing some SELECT statements I'm writing for them. ... How do I get a free Oracle client installed, if possible, so I can test some SQL statements. ... There is no documentation with that download. ...
    (comp.databases.oracle.tools)
  • Re: I cant find a SETUP.EXE in the SQL Plus Client ??
    ... someone else's server for testing some SELECT statements I'm writing ... How do I get a free Oracle ... client installed, if possible, so I can test some SQL statements. ... There is no documentation with that download. ...
    (comp.databases.oracle.tools)
  • dumb previous question - repost
    ... Here is what I do right now with com ado from ... transfer data if you are going from server to server<< ... from sql server to Access in a few seconds. ... my vb.net app with 2 tables, tblsql and tblAccess is this ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Bulk Copy from datasource A to B
    ... With Oracle to SQL ... Server, for example, you can pull the data out as XML, run an XSLT transform ... > whether they have DTS installed or the DTS dlls from the SQL Server ...
    (microsoft.public.dotnet.framework.adonet)