Advertisement

04.18.2008 at 10:16AM PDT, ID: 23334876
[x]
Attachment Details

DTS Package abends when importing an empty flat file

Asked by meshayle in MS SQL DTS, Visual Basic Programming

Tags: , ,

There is a daily job that executes a DTS package that imports a flat file into a table on a SQL SVR 2005 database.  When the DTS package executes, if the daily file is empty it abends.    

1. What is the most efficient way to check the number of records in the file before calling the DTS package?  
2. OR is there a property setting that will allow the DTS package to check the number of records, before attempting to import?

The code is written in VB6.  I am looking for an efficient way of handling this issue.

This is my first experience working with DTS.  This package was written in 2003 by another developer.

Thank you in advance for your technical assistance.Start Free Trial
[+][-]04.18.2008 at 11:26AM PDT, ID: 21388386

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, Visual Basic Programming
Tags: SQL SERVER, 2000/2005, Package failed because Step 'DTSStep_DTSDataPumpTask_1' failed. Column name 'Col021' was not found
Sign Up Now!
Solution Provided By: dready
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.21.2008 at 12:09PM PDT, ID: 21404960

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 12:13PM PDT, ID: 21404994

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 12:25PM PDT, ID: 21405085

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.21.2008 at 02:23PM PDT, ID: 21406194

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628