Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

INSERT INTO table using OpenQuery

TRUNCATE TABLE mytable

INSERT INTO mytable (firstcolumn, secondcolumn)
SELECT firstcolumn, secondcolumn 
FROM OPENQUERY (mylinkedserver, 'SELECT firstcolumn, secondcolumn FROM linkedtable')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #INSERT #INTO #table #OpenQuery
ADD COMMENT
Topic
Name
8+1 =