SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Classes
About Us
Login / Register
Subscribe RSS Feed 

Download a free trial of SQL Backup now

Using the File System Task in SSIS

This video by MVP Brian Knight shows you how to use a File System Task in SSIS to rename, move or delete a file. If you have been using DTS, this task replaces most of the code you would have commonly placed in an Activex scripting task.

Duration:
4 mins 6 secs
Skill Level:
100
Rating:
4.25 out of 5
Publish Date:
December 01, 2008
Using the File System Task in SSIS Watch Video Now  Watch it later!
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Brian Knight
Owner of Pragmatic Works :: Brian Knight, SQL Server MVP, MCSE, MCDBA, is the co-founder of Jumpstart TV and SQLServerCentral.com. Brian has written and co-written 9 technical books. Brian has spoken at conferences like PASS, TechEd and Connections. Brian develops solutions with Pragmatic Works to migrate DTS packages to SSIS.

References

There are no downloads or recommended reading links for this video

Comments
Jason Nupen on 12/10/2008
It moved pretty quick which wasn't too bad but if possible I'd like to see more on the use of a Variable to rename the file so we can add a '200812' type designation.

Pru on 12/26/2008
Variables -- As noted from a previous viewer -- use of variable to append date/time to filename would be a useful addition to the training video.

Venkata Taduri on 2/10/2009
Pretty concentrated one.. thank you..

Michael Wells on 2/10/2009
Gave me exactly the answer that I needed without taking a lot of time.

Richard Dugovic on 2/17/2009
It was very enlightening to see the File System task being performed, and that it has all the important capabilities ... but I must say that the presenter operates pretty quickly, so I may want to see it again some time ... perhaps after playing with it a bit.

kalakotireddy on 2/18/2009
It was fast but good job

Mark Pratt on 3/29/2009
I needed information on using variables with these tasks, and that was not provided.

Bishoy on 4/23/2009
It would be useful to talk about using UNC, if possible, within an SSIS package.

sarabjeet on 4/25/2009
good

khurram bhatti on 5/24/2009
Greate file system task intro...

Mike on 6/5/2009
good man

vin lawrence on 6/5/2009
Good but basic

Charles Oesterle on 6/5/2009
I would like more about use of variables when moving files by adding a date/time to the file name.

janet macdonald on 6/5/2009
spoke too fast....I couldn't understand a lot of what he was saying; couldn't see a lot of what he was doing until he enlarged some window pics.

Craig A. Silvis on 6/5/2009
how do you add a date time stamp to the renamed file?

Philip Hickey on 6/5/2009
Great video with quick examples

James Majcen on 6/5/2009
How did you know that I needed to figure out file renaming for a project today?

Gary Wilson on 6/5/2009
Voice is a little too fast. Good use of zoom to highlight screen areas.

Rubens on 6/5/2009
Keep the SSIS videos coming, love them!

Christian Bahnsen on 6/5/2009
another great video

Dick Rosenberg on 6/5/2009
Ditto on the data time. I would like a video on how to go through a series of files named, say, Sales_East.txt, Sales_Midwest.txt and Sales_West.txt, put them all in a staging table, AND move each one to an archive folder while appending the date and time to the file name so it comes out Sales_East060520091032.txt, Sales_Midwest060520091033.txt, etc.

denny on 6/5/2009
Can you move folders to another destination if say the folder has the word closed at the end of the folder name?

David Burnett on 6/5/2009
the speaking is a little fast and more real world examples a the end.

Jamshid Nouri on 6/5/2009
short and excellent demo

Tim Harms on 6/5/2009
1 day too late. I spent yesterday trying to figure out how to do this. I think the tricky part of what I was doing though is rename the file based on a variable and a timestamp. Otherwise, good video. Thanks!

Josef on 6/10/2009
This example package was run locally. Try installing the package on a server and scheduling it and see how well it works. You will run into permisions issues with file system and even permissions to read the .net assemblies if you are running .Net script. This is how most developers will use and there is very little on how to accomplish this without running into a world of pain.

Megha on 6/11/2009
Nice one

John Rowell on 6/17/2009
Too fast.

BJ on 6/17/2009
good stuff to know!

John Rowell on 6/17/2009
Can SSIS use wildcards to locate the files to feed the task?

Angelo Cook on 6/17/2009
Most people should know how to do this. You should have focused on something a bit more complicated.

Prashant Thakwani on 6/17/2009
This was simple and easy but valuable. Good to see couple of test cases.

Prashant Thakwani on 6/17/2009
How abt the network path in place of the local path ? Will that work there as well.

Travis on 6/18/2009
I cannot believe this guy is considered to be such an expert in SQL Server and have such terrible speaking skills...

Julie Breutzmann on 6/18/2009
Nice, quick examples

Carney Clegg on 6/23/2009
Good video, Thanks for sharing it.

Tina on 7/1/2009
Loved the step by step instructions. Thanks

Raymond Anders on 7/8/2009
would have liked it to include the check if a file existed

vasu contact on 7/12/2009
I would have been nice ahd it demonstrated the variable destination. I think that was demoed in a different video.

Kishor Bandi on 7/13/2009
It was quite helpful

Kristeen Sellers on 7/13/2009
Had already used Move, Copy and Delete. Didn't know what Rename would. Very helpful

Jay Ravindran on 7/15/2009
Good work...keep goin....

Rajesh on 9/11/2009
Nice one!

recobasi on 9/11/2009
thankss

sirandas on 9/18/2009
shows only basic file operations, would be intersting to see how to pass other variables to append to the filename

Jim on 9/22/2009
Good basic stuff. You move your mouse a little fast at times, and the thing we really need is the variables stuff, but I finally figured it out.

Richard Ray on 10/3/2009
I'd like to have seen how to use a var as part of the new filename for the Rename File task. I'd like to append a date-time stamp to my archived file. I can figure it out, I'm certain, but it would have been a good addition.

yashpal on 10/5/2009
gr8,Keep sending such stuff

Ron on 10/22/2009
too fast

Cole Knight on 12/3/2009
Could have gone a little into how to add date/time stamp on the file when you rename it instead of the hard-coding. But still a pretty good video.

JR on 12/7/2009
What about creating a file with the date created as part of the file name?

Roger on 1/6/2010
very helpfull, thank you!

John on 1/27/2010
The images appear fuzzy on my system, despite my hires screen

David Oesterreich on 2/12/2010
The guy should talk a little slower.

Kevin Taylor on 2/13/2010
Using the File System Task in SSIS - video, is great. ----------------- I have an issue where I use the RS command and xp_cmdshell in an SSIS package to export a report to excel for certain clients who have up to 150 fleets, each excel fleet file going to each fleets folder (folder: Fleet1, folder: Fleet2). The issue I am experiencing is that when the size of the exported file goes over 1.5 MB (2.1 MB in this case) and the file location for saving the file is on a network drive then file size is 0 kb. If I save the exported file locally on the report server then the file size is 2.1 MB (it works). If I schedule the same report via a subscription and the file location for saving the file is on a network drive then file size is 2.1 MB (it works). The RS command uses a .RSS file (vbscript) so I assume this file might be the culprit. Can anyone assist. Email: sonyt65@yahoo.com

Michael Atkinson on 2/26/2010
Excellent!

Michael Atkinson on 2/26/2010
Excellent, but can I play it at half speed???

Cathy Dellaert on 3/8/2010
hard coding file names is a no brainer better to show example with variables and dynamic file names

Bharath on 3/12/2010
What if I want to add a connection to the file on the network which involves network credientials.

Mukul Janeja on 3/13/2010
It will be nice to see how variables are used within connection to point to files such as *.xml and delete/rename/move.

James Florey on 6/27/2010
It doesn't show how to rename a file without moving it.

Furqan Iqbal on 6/28/2010
Way too Fast, Doesn't show where to set the Variables, just too fast.



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions