Anyone can tell me good native JDBC for SQL server and Access?I've used ODBC-JDBC from Sun, but it's too bad.
can someone tell me about any possible connection methods betweenjava and database. also any differences between each connection type.
DO you know any sites including help or source codes about JavaDatabase Connectivity...?I have a project about connectivity with MS Access...
Here is a sample chapter on JDBCvig.pearsoned.com/samplechapter/0139016619.pdfBy reading this chapter you will get the basicregarding JDBC. They don't explain how to create theODBC, if you don't know how to create an ODBC searchon google, it's relative easy how to create one.
Use jdbc Tutorial kept on sun site.http://java.sun.com/docs/books/tutorial/jdbc/It covers these things.
I hava some code to access database (DBConector.java)I use Mysql and the table structure in db_simaba.sqlfile. if run that code i have some error like ;java.sql.SQLException: Unable to connect to any hostsdue to exception:java.lang.ArrayIndexOutOfBoundsException: 42atcom.mysql.jdbc.Connection.createNewIO(Connection.java:1797)atcom.mysql.jdbc.Connection.<init>(Connection.java:562)atcom.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:361)at java.sql.DriverManager.getConnection(UnknownSource)at java.sql.DriverManager.getConnection(UnknownSource)athen.tools.DBConector.getConnection(DBConector.java:34)athen.tools.DBConector.getInstance(DBConector.java:25)at hen.tools.DBConector.main(DBConector.java:56)------But if the data base name is change for example'db_test', the code run well....what wrong any body know...?
actually i m also using back end as mysql.and my program is running well.so i have checked my database after ur mailbut i didn't find database like .sql.so i think databse of mysql won't be like that.so u might get problem bcoz of that.
Well, the error message says that some array index does not fit intothe array given to this function as a parameter.As you mentioned that the DB name "db_test" works, I dare to supposethat the variable you are using to store the DB name is too small;have you defined it as a StringBuffer of limited size, or anythingsimilar? Maybe a char array instead of a String? Then make the arraylarger.
Hey i want help abt jaca data based canany one give me the code of the simple java databasedcode which contains theadd,delete,update,next,previus,first,last this methodis include pls send me as early as posssible
check out this sites , it could be so helpful..http://www.sourceforge.net/http://www.planetsourcecode.com/http://www.javagalaxy.com/Java.jsphttp://www.hotscripts.com/http://www.java2s.com/http://www.javaalmanac.com/http://www.javapractices.com/index.cjphttp://www.sys-con.com/java/sourcec.cfmand of course sun java official forums:http://forum.java.sun.com/forum.jspa?forumID=31