Solved

SSIS File System Task

Posted on 2011-09-26
3
419 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

14 Experts available now in Live!

Get 1:1 Help Now