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

How To Store details from FileName Into Variable using SSIS

$
0
0

Hi all

I have one package through for each loop container I am loading all flat files into  target table and its working fine.Now I my requirement is to  capture the .txt file and loading into sqlserver table.Please check below file name.

CCCLOC_DDDLOC_LOC_20151203_240000_trigger.txt

from above file name I have to derived below detail.

I have variable @File_Name which is used to stored the file name at rune time.

Now I want to derived 5 values from the file name as below

Clientname=CCCLOC

Partnername=DDDLOC

Entity=LOC

Creationdate=20151203

Creationtime=240000

how to write expression for above situation.

Thanks


Thankx & regards, Vipin jha MCP



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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