Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Select the file which has latest date on the FileName

$
0
0

Hello,

I have different set of files in a folder with different filenames like

PersonFile_20161101.txt

PersonFile_20161102.txt

PersonFile_20161103.txt

AddressFile_20161101.txt

AddressFile_20161102.txt

AddressFile_20161103.txt

My task is to choose the latest AddressFile (latest is based on FileName with latest date on the filename) and load it to SQl table. From the above example I should able to select AddressFile_20161103.txt?

How do I do this?

Any help is appreciated!!

Thanks,


sree


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>