Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Converting String to datetime in ssis

$
0
0

Source column is char in the format mmddyyyy and the destination is datetime, how to achieve I used derived column and used the below

(DT_DBDATE)(SUBSTRING(end_dt,1,2) + "-" + SUBSTRING(end_dt,3,2) + "-" + SUBSTRING(end_dt,5,4))

But I get the following error

[OLE DB Destination [22]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available.  Source: "Microsoft

SQLServerNativeClient 11.0"  Hresult: 0x80004005  Description:

"Invalid

charactervalueforcastspecification".

An OLE DB record is available.  Source: "Microsoft

SQLServerNativeClient 11.0"  Hresult: 0x80004005  Description: "Invalid charactervalueforcastspecification".

An OLE DB record is available.  Source: "Microsoft

SQLServerNativeClient 11.0"  Hresult: 0x80004005  Description: "Invalid charactervalueforcastspecification".


sree


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>