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

System start time variable issue

$
0
0

Hello Everyone

I have use system start time variable for my flat file name. I changed expressions for  connection string for my flatfile connection, so it will take system time in file name.

Now if i see connection string, it has exact time as system time variable has, but when i execute the task, it takes time when i am running that task...

How can that happen? In past, i have used exact scenario and it worked fine, but somehow in this task, i am getting this issue.

Please help

Thanks

Here is string for start time variable:

RIGHT("0" + (DT_STR,2,1252)DATEPART("MM" ,@[System::StartTime]), 2) + RIGHT("0" + (DT_STR,2,1252)DATEPART("DD" ,@[System::StartTime]), 2) +  (DT_STR,4,1252)DATEPART("YYYY" ,@[System::StartTime]) + "_"
+ Right("0" + (DT_STR,4,1252) DatePart("hh",@[System::StartTime]),2) + "" + Right("0" + (DT_STR,4,1252) DatePart("n",@[System::StartTime]),2)  +""+ Right("0"+ (DT_STR,4,1252) DatePart("ss",@[System::StartTime]),2)


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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