on 11-22-2013 10:48 AM
Hi All,
I am doing a flat file upload into SAP HANA. I have a date column in my flat file. I am not sure in what format i should store the data in excel to get the correct record in SAP HANA with DATA as the datatype. What should the date format be in excel.
DD-MM-YYYY
YYYY-MM-DD
YYYYMMDD
DDMMYYY
If i load the data in SAP HANA with datatype NVARCHAR the data gets loaded. But i want to load the data with data type as DATE.
Request you to please help
Regards
Nilesh
Hi Nilesh,
YYYY-MM-DD will work. Please ensure that it is shown in the same format when you try to load the file. If the excel data type is DATE, then you may see data in YYYY Mon DD in HANA Studio data preview for the file. Please change the data type to general and ensure the data format.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use whatever format you want
IMPORT FROM '/location/file.ctl' WITH DATE FORMAT 'YYYY-MM-DD';
See the following link for more details
http://help.sap.com/hana/html/sql_import_from.html
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.