Created
December 30, 2019 14:44
-
-
Save pedroppinheiro/bce6bf7601f7ec5a1da8ee53cc12cb88 to your computer and use it in GitHub Desktop.
Script para importar csv em tabela temporária
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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