DELETE OPENQUERY([LinkedServer],
'SELECT * FROM adm.LinkedServertable')
FROM OPENQUERY([LinkedServer],
'SELECT id FROM adm. LinkedServertable' ) as linked
LEFT OUTER JOIN dbo.Kunden on Kunden.id = linked.id
where linked.id is null
DELETE OPENQUERY([LinkedServer],
'SELECT * FROM adm.LinkedServertable')
FROM OPENQUERY([LinkedServer],
'SELECT id FROM adm. LinkedServertable' ) as linked
LEFT OUTER JOIN dbo.Kunden on Kunden.id = linked.id
where linked.id is null
Bitte achten Sie darauf, alle Felder mit Stern * zu füllen. HTML-Code ist nicht erlaubt.