Skip to content

Instantly share code, notes, and snippets.

@pedroppinheiro
Created December 30, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedroppinheiro/bce6bf7601f7ec5a1da8ee53cc12cb88 to your computer and use it in GitHub Desktop.
Save pedroppinheiro/bce6bf7601f7ec5a1da8ee53cc12cb88 to your computer and use it in GitHub Desktop.
Script para importar csv em tabela temporária
--https://stackoverflow.com/a/52750830/1252947
CREATE TABLE #tempTable1
(
pasta VARCHAR(50),
subpasta VARCHAR(50)
)
BULK INSERT #tempTable1
FROM '<CAMINHO COMPLETO>'
WITH
(
FIELDTERMINATOR = ','
);
select * from #tempTable1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment