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

move file with date and time

$
0
0

hi,

i m usinf file system task to move file , using following expression,

@[User::ArchivePath] + SUBSTRING( @[User::myfilevalue] , 1 , FINDSTRING( @[User::myfilevalue],".",1) - 1 ) + "-" + (DT_STR, 2, 1252) Month( @[System::StartTime] )+

(DT_STR, 2, 1252) Day( @[System::StartTime] )+

 (DT_STR, 4, 1252) Year( @[System::StartTime] )+ "- "

 + RIGHT("0" + (DT_WSTR,2)DATEPART("hh",  @[System::StartTime]), 2) + ":"
    + RIGHT("0" + (DT_WSTR,2)DATEPART("mi",  @[System::StartTime]), 2) + ":"
    + RIGHT("0" + (DT_WSTR,2)DATEPART("ss",  @[System::StartTime]), 2)+

 SUBSTRING( @[User::myfilevalue] , FINDSTRING( @[User::myfilevalue],".",1) , LEN( @[User::myfilevalue] ) )

when i run package it shows error like "n error occurred with the following error message: "The given path's format is not supported.".

if i remove 

 + RIGHT("0" + (DT_WSTR,2)DATEPART("hh",  @[System::StartTime]), 2) + ":"
    + RIGHT("0" + (DT_WSTR,2)DATEPART("mi",  @[System::StartTime]), 2) + ":"
    + RIGHT("0" + (DT_WSTR,2)DATEPART("ss",  @[System::StartTime]), 2)+

its working fine,but i want time also attached with my file


Viewing all articles
Browse latest Browse all 24688

Trending Articles