![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Error: "invalid schema name" even if schema is present in the database in SAP HANA
I think you need to mention database name in JDBC URL while connecting to the database. Try following −
String server = "servername.domain.com"; String instance = "03"; String database = "TEST"; String dbUsername = "USERNAME"; String dbPassword = "xxxxxx"; String jdbcUrl = "jdbc:sap://" + server + ":3" + instance + "15/?currentschema=" + database + "&user=" + dbUsername + "&password=" + dbPassword; java.sql.Connection connection = java.sql.DriverManager.getConnection(jdbcUrl);
Advertisements