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

Convert Teradata TIMESTAMP to SQL Server DateTime

$
0
0

I have a Teradata TimeStamp(6) field which I have imported into a VarChar field in a staging table.  The values look like this:

1/22/2010 00:00:00.000000
9/15/2003 00:00:00.000000
10/10/2006 00:00:00.000000

I'm trying to move it to a permanent table in a SQL Server 2008R2 DateTime field.

I've tried different combinations of using CAST/CONVERT in the SELECT as well as a Data Conversion step, but can't find the right combination.  The error is usually something like this:

Error: 0xC0202009 at HEFIN, OLE DB Destination 1 [97]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".

Error: 0xC020901C at HEFIN, OLE DB Destination 1 [97]: There was an error with input column "DW_LOAD_TS" (129) on input "OLE DB Destination Input" (110). The column status returned was: "The value could not be converted because of a potential loss of data.".

Any suggestions?


-Al H



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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