Solved

SSIS File System Task

Posted on 2011-09-26
3
424 Views
Last Modified: 2012-06-21
Has anyone got any good examples.
I have a xls file that i am populating, i then need to copy the file to a new dir and rename the file with a date.
0
Comment
Question by:aneilg
3 Comments
 
LVL 17

Assisted Solution

by:OriNetworks
OriNetworks earned 50 total points
ID: 36598990
0
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 200 total points
ID: 36707730
Yes,

If you are loading the file first in database then you have name and path of the file.
Give the path and file name to move using expression.

"\\\\" +  @[User::FILE_SHARE] + TRIM(@[User::Done]) + LTRIM(@[User::FileName]) + (DT_WSTR,4)YEAR(GETDATE()) + RIGHT("0" + (DT_WSTR,2)MONTH(GETDATE()), 2) +  RIGHT("0" + (DT_WSTR,2)DAY( GETDATE()), 2) +   ".txt"
0
 

Author Comment

by:aneilg
ID: 36709759
i've created a variable 'Rename_my_Extract' string. vale \\server-001\Data\patn\my Extract.xls

i then create a New File connection point it to the xls. If i then go into the expressions tab and create the expression. evaluate its fine. bu ti get an error when i test the file system task.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now