문제

I have 200+ CSVs and I'd like to bulk insert it into SQL Server using SSIS command-line: DTEXEC.exe. Is this something that is possible to do with one command?

I have to import hundreds of files daily automatically and I believe the most efficient way is to do a command line.

I'm assuming it involves the foreach loop editor.

If there's a better way to do this, I'd like to know as well!

Thanks in advance!

도움이 되었습니까?

해결책

Assuming all files have the same column layout, you could use a Foreach Loop Container with the enumerator type set to Foreach File. Example looping through Excel files

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top