Solved

SSIS - file import - detect file size

Posted on 2008-06-20
2
836 Views
Last Modified: 2012-08-14
I have an SSIS package which imports file contents.

Sometimes these are blank files and I need SSIS to just move them to another directory.

Is there a feature in SSIS which would return the file size, and if it is smaller than x bytes, it just places it in another directory?
0
Comment
Question by:egxis
2 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 21849983
0
 

Accepted Solution

by:
egxis earned 0 total points
ID: 21863710
Sorry, not quite what I was looking for.

I solved it by creating a batch script which looks for blank files and moves the blank files for me, before processing any data.

if exist *.txt for %%i in (*.txt) do if %%~zi==0 move "%%i" C:\archive

Open in new window

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

757 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

22 Experts available now in Live!

Get 1:1 Help Now