I have followed all the steps required for loading into HANA using hdbsql.
I am able to laod the data too into HANA without any issue. But when the data in .csv file is invalid, all the load is failing and its not even creating error file on HANA. How would i know what went wrong?
Find below the steps i performed
1. created a table in our Hana server
2. uploaded data file into Server ( .csv file)
3.created a text file with import command and placed the file in the same path as the data file in the Server (.ctl file)
4. Execute command "Import from '/folder1/folder2/file.ctl' " from the hana sql editor
Heres how my control file look.
IMPORT DATA
INTO TABLE TESTIMPORTTABLE
FROM 'HanaImport.csv'
RECORD DELIMITED BY '\n'
FIELD DELIMITED BY ','
OPTIONALLY ENCLOSED BY '""'
ERROR LOG 'ErrorLog.err'
One more thing i need to know, is there a way to convert date format in control file before loading in HANA. (If its possible can any one be able to provide a same control file)
As in my .csv file the date format i have is mm-dd-yyyy and it seems HANA only accepts YYYYMMDD.