Solved

SSIS - file import - detect file size

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

730 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