I am working on exporting data from SSIS and I have a truncation error in one of my projects:
[TH27 [91]] Error: "A truncation error has occurred. The column name is" mydate "."
On input (Teradata) I have a type column timestamp(6), and on output in SQL Server I have a type column datetime.
How can I convert it so that when I use SSIS, I don't get this error?
My attempt (query 1):
SELECT
column1,
CAST(CAST(CAST(mydate AS DATE FORMAT 'YYYY-MM-DD') AS CHAR(10)) || ' '
|| TRIM(EXTRACT(HOUR FROM (mydate))) || ':'
|| TRIM(EXTRACT(MINUTE FROM (mydate))) || ':'
|| TRIM(CAST(EXTRACT(SECOND FROM (mydate)) AS INTEGER)) AS Date) AS mydate,
column2
FROM table1
Update:
The request I wrote was at Teradata source here an example of my SSIS scheme

source
share