Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MS SQL Server :: Linked Server :: Ergebnis nicht vollständig

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe ein mal die MS SQL Server 2005 und Oracle.

Die sind mittels ODBC verbunden -> Data source 'p_oracle'.

1. Dann habe ich in dem MS SQL Server einen Linked Server eingerichtet:


exec sp_addlinkedserver 'Test', 'Oracle', 'MSDASQL', 'p_oracle'

MSDASQL steht für 'Microsoft OLE DB Provider for ODBC Drivers' 2. Habe ich die Login daten für die ODBC-Verbindung zum Oracle eingerichtet:

exec sp_addlinkedsrvlogin 'Test', false, 'sa', 'user', 'password'

3. Jetzt kommt das was ich nicht verstehe, ich rufe auf:

SELECT * FROM openquery(Test, 'SELECT * FROM myTable')

und bekomme nur eine Zeile als Ergebnis (also die letzte Zeile in der Tabelle ). Die Tabelle hat aber bereits schon 22500 Einträge.

Was mache ich nun falsch?

Wie kann ich alle Einträge aus der Tabelle aus lesen?

OPENQUERY *kann* auch nur *eine* zeile liefern:

Executes the specified pass-through query on the specified linked server. This server is an OLE DB data source. OPENQUERY can be referenced in the FROM clause of a query as if it were a table name. OPENQUERY can also be referenced as the target table of an INSERT, UPDATE, or DELETE statement. This is subject to the capabilities of the OLE DB provider. Although the query may return multiple result sets, OPENQUERY returns only the first one.

AFAIR hilft dir da OPENROWSET.

bitte dazu mal die dokumentation zur hand nehmen.

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.