0
There are some solutions and one of them involves using Linked server to access the spreadsheet in Excel as if it were a table. Then include lines that are in the spreadsheet and that are not part of the table.
Here is the sketch of the code:
-- código #1
INSERT into Colaboradores (colunas)
SELECT P.colunas
from planilha as P
where not exists (SELECT * from Colaboradores as C where C.IdColaborador = P.IdColaborador);
Details in the article Bulk data import (Bulk load).
in management studio can do import, and can use a
bulk
, research on this and should help– Ricardo Pontual
OK, I’ll look for
– Luís Lopes