I'm working on a data exportation from SSIS, and I have a truncation error in one of my project:
[TH27 [91]] Error: "A truncation error occurred. Column name is 'mydate'."
In the input (Teradata), I have a column of type timestamp(6)
, and in the output in SQL Server, I have a column of type datetime
.
How can I convert it in way that when I use SSIS I don't get this kind of error?
My attempt (request 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 that I wrote was in the Teradata source here's an example of my SSIS schema