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 2012 Forums
 SSIS and Import/Export (2012)
 SSIS job failed to connect to database
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

duncanpts
Starting Member

9 Posts

Posted - 05/14/2013 :  00:35:38  Show Profile  Reply with Quote
After successfully deploying my SSIS package, the job in SQL Server was failed. Apparently this is something to do with SSIS data flows connecting to my database but I can't figure what's wrong. The error code from the log file is below.

I would appreciate any suggestions.


errror msg:
[table_A Source [2]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E07.
An OLE DB record is available. Source: "IBM OLE DB Provider for DB2" Hresult: 0x80040E07 Description: " CLI0113E SQLSTATE 22007: An invalid datetime format was detected; that is, an invalid string representation or value was specified. SQLSTATE=22007".

[SSIS.Pipeline] Error: table_A Source failed the pre-execute phase and returned error code 0xC0202009.

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/14/2013 :  00:53:27  Show Profile  Reply with Quote
The problem seems in date values coming in a field. SSIS couldnt interpret date from it. Seems like DB2 server connection is the culprit. Check the query you use to pull data from DB2

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

duncanpts
Starting Member

9 Posts

Posted - 05/14/2013 :  02:04:44  Show Profile  Reply with Quote
starting i have put variable to select the date, failed. "select * from table_A where Create_date >?"
after i try normal query also cannot. " select * from table_A".
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/14/2013 :  02:12:53  Show Profile  Reply with Quote
check the date related fields in table_A and also value coming to see if its in valid format

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

duncanpts
Starting Member

9 Posts

Posted - 05/14/2013 :  02:20:53  Show Profile  Reply with Quote
some is null, how to handle it?
thanks.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/14/2013 :  02:39:22  Show Profile  Reply with Quote
add a function to convert those NULLs to valid date value. You can do it either inside source query using DB2 functions (I'm not faimilar with DB2 so you need to serach it out). You may also chose to do it in SSIS using derived column task.

------------------------------------------------------------------------------------------------------
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.07 seconds. Powered By: Snitz Forums 2000