Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I try to build a replicate task with db2i as a a source and SQLServer as a target.
I try to convert a numeric colum from my source in a date column on my target
The coulmn from my source looks like that '20210615'
The implicite conversion didn't work and there is no function for conversion
Any idea ?
Regards,
Hi,
I post the answer if anybody need it in the future
Ther is no date format in SQLite so i used the implicit conversion with the good format for SQL Server
substr('20210615',1,4)||'-'||substr('20210615',5,2)||'-'||substr('20210615',7)
Try this
=Date(Date#('20210615', 'YYYYMMDD'))
Hi,
I post the answer if anybody need it in the future
Ther is no date format in SQLite so i used the implicit conversion with the good format for SQL Server
substr('20210615',1,4)||'-'||substr('20210615',5,2)||'-'||substr('20210615',7)
with out using Substring how to do it.
Hello @suvbin ,
May we know more information to understand the request well?
1- source/target sides database type
2- source/target sides column type
3- a sample of the data in source and what's expected results in target
Regards,
John.
try this article :