on 04-14-2014 8:46 AM
Hi,
Am loading a table from oracle to sql server in BODS, which has a datetime column in source.
when i use SSIS ( ETL tool ) , the corresponding datetime column is getting loaded as
2012-12-16 08:00:00 , which is correct.
But when i use BODS, it is getting loaded as
2012-12-16 08:00:00.000000
In destination this column is varchar(30).
how can i restrict this in BODS ?
BOTH CAST() AND TO_CHAR() WILL HELP YOU DO THE REQUIREMENT...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You are implicitly converting from datetime to a string, in fact Data Services is probably giving you a warning. To explicity control the conversion to a string representation, use the to_char function.
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can format it like:
Cast(Date_Field,’datetime’)
It should return you the date in below format: YYYY.MM.DD HH24:MI:SS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi samuel v,
Can you please share the screen shot as how you have mapped this field? Let us know if this is not yet resolved.
Regards,
MSA
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.