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

Create Dynamic Path For SSIS Logging with SSIS log provider for Text files

$
0
0

hello i got trouble with Path destination of SSIS log provider for Text files

at first i use the path static like D:\\ . but right now I want to create the path dynamically , whic i get from SQL table , and put the value on variable

@[User::LogPath]


so i create expression builder for SSIS txt File connection string

@[User::LogPath]+@[System::PackageName]+("_"+(RIGHT((DT_WSTR,4)
DATEPART("yyyy",GetDate()),4)+
RIGHT("0"+(DT_WSTR ,2)
 DATEPART("mm",GetDate()),2)+
RIGHT("0"+(DT_WSTR,2)
DATEPART("dd",GetDate()),2)+"_"+
RIGHT("0"+(DT_WSTR,2)
DATEPART("HH",GetDate()),2)+"_"+
RIGHT("0"+(DT_WSTR,2)
DATEPART("mi",GetDate()),2)+"_"+
RIGHT("0"+(DT_WSTR,2)
DATEPART("SS",GetDate()),2))+".log")

but the

@[User::LogPath]

didn' give the path value so the txt Log file didn't create , is it possible to create SSIS log provider for Text files Connection string dynamically?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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