Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 SSIS 2005 blank values problem
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

96 Posts

Posted - 07/19/2013 :  12:52:55  Show Profile  Reply with Quote
I am using a package to load data from a tab delimited flat file into SQL server table.

For this purpose, I am using SSIS 2005 and SQL server 2005.

In the connections manager for flat file source, I have a column AcqDate which I have declared as a Date. When I run the package, the package fails after processing 5800 rows as 5801 row's AcqDate is blank. The package fails in the flat file source adapter when it tries to pull data from the flat file.

If I run the same package in 2008, it runs successfully.

Is there any way to solve this problem?

Thanks in advance!!

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/20/2013 :  08:42:27  Show Profile  Reply with Quote
you need to add a derived column transform and add an expression inside it to convert blanks to default date value. Use conditional operator for creating the expression

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000