on 2017 Aug 30 1:05 PM
IMPORT FROM CSV FILE 'C:\Users\mypc\IdeaProjects\Loadorcle\new\emp.csv' INTO RIGHTDATA.Employees1 WITH SKIP FIRST 1 ROW RECORD DELIMITED BY '\n' FIELD DELIMITED BY '`'
When i run the above query i get the exception: > Exception in thread "main" > com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: [2]: > general error: Cannot open CSV file, > C:\Users\mypc\IdeaProjects\Loadorcle\new\emp.csv
The csv file is in a directory new under the project folder. How can i solve this?
Request clarification before answering.
As usual, before posting the question, you should have searched for existing questions and answers for the same problem.
Checking the HANA documentation on the IMPORT FROM command would have helped, too.
You would have found that IMPORT FROM only allows to import data from a folder visible to the HANA server process. Your Windows-user's folder is not visible to the HANA server. And that's why you cannot use this command for importing this data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
47 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.