SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

rockstar283
Yak Posting Veteran

90 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!!

visakh16
Very Important crosS Applying yaK Herder

India
52325 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.08 seconds. Powered By: Snitz Forums 2000