?
Solved

SSIS - file import - detect file size

Posted on 2008-06-20
2
Medium Priority
?
858 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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 date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

765 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