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.

Insert Into Openrowset Frage

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte ein Insert von meinem Testerver auf dem LiveServer durchführen.


INSERT INTO  

 OPENROWSET('SQLOLEDB',   

 'Server=liveserver;database=XYZ;TRUSTED_CONNECTION=YES;',   

 'SELECT feld1, feld2 FROM dbo.tabelle1') 

values ()

Wie kann ich Values nun ein Select von meinem Testserver übergeben? Sprich:

INSERT INTO  

 OPENROWSET('SQLOLEDB',   

 'Server=liveserver;database=XYZ;TRUSTED_CONNECTION=YES;',   

 'SELECT feld1, feld2 FROM dbo.tabelle1') 

values (select feld1, feld2 from testserver_tabelle)

Hoffe das war verständlich. Alles natürlich unter MSSQL.

Danke schon mal für Eure Hilfe! :)

Ohne das values() sollte das schon funktionieren.


INSERT INTO  

 OPENROWSET('SQLOLEDB',   

 'Server=liveserver;database=XYZ;TRUSTED_CONNECTION=YES;',   

 'SELECT feld1, feld2 FROM dbo.tabelle1') 

select feld1, feld2 from testserver_tabelle

Das hat ich auch erst so probiert aber es wurde aufgrund eines Syntaxfehlers quitiert. Jetzt geht es seltsamerweise.

Vermutlich mal wieder irgendwo eine Klammer übersehen! :)

Trotzdem danke!

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.