Solved

SSIS - file import - detect file size

Posted on 2008-06-20
2
847 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

840 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