Import most recent csv file to sql server in ssis

前端 未结 3 854
故里飘歌
故里飘歌 2020-11-27 06:05

i have an folder, in which i receive .csv files for every half hour with time stamps. Now, i need to take the latest file from the available files and import it into sql ser

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 06:53

    Take a look at this article for directory listing in tsql http://www.simple-talk.com/sql/t-sql-programming/the-tsql-of-text-files/

    Then you can find the latest one by ordering them.

提交回复
热议问题