Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update query in linked server

-- udpate 
UPDATE OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles WHERE id = 101')   
SET name = 'ADifferentName';  
-- insert
INSERT OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles')  
VALUES ('NewTitle');  
-- delete
DELETE OPENQUERY (OracleSvr, 'SELECT name FROM joe.titles WHERE name = ''NewTitle'''); 
 
PREVIOUS NEXT
Tagged: #update #query #linked #server
ADD COMMENT
Topic
Name
9+6 =