Hi I have created all my databse inABC schema. I made connection to db2 databse using code . public Connection methodreturnConnection(){ Properties p =new Properties(); // Used with Microsoft driver String driverName = "com.ibm.db2.jcc.DB2Driver"; String connectStr = "jdbc:db2://localhost-dt:50000/DABASENAME"; Connection con = null; p.setProperty("user","username"); p.setProperty("password","pasword"); p.setProperty("schema","ABC");// It's not working try { Driver driver = (Driver) Class.forName(driverName).newInstance(); con = driver.connect(connectStr,p); } } but ...