java - [Microsoft][ODBC SQL Server Driver]TDS buffer length too large exception -
i receiving next exception in java 1.7 when trying found odbc connection sql database. have searched on net solution, can find descriptions of problem without java solution. connection string follows:
try { seek { class.forname("sun.jdbc.odbc.jdbcodbcdriver"); } grab (classnotfoundexception ex) { logger.getlogger(connect.class.getname()).log(level.severe, null, ex); } r = drivermanager.getconnection("jdbc:odbc:driver={sql server};server=sql4.sqldatabase.com;port=3306;database=sql457564;uid=username;pwd=******"); } grab (sqlexception ex) { system.err.println("error in connection"); ex.printstacktrace(); }
the exception receive is:
java.sql.sqlexception: [microsoft][odbc sql server driver]tds buffer length big @ sun.jdbc.odbc.jdbcodbc.createsqlexception(jdbcodbc.java:6956) @ sun.jdbc.odbc.jdbcodbc.standarderror(jdbcodbc.java:7113) @ sun.jdbc.odbc.jdbcodbc.sqldriverconnect(jdbcodbc.java:3072) @ sun.jdbc.odbc.jdbcodbcconnection.initialize(jdbcodbcconnection.java:323) @ sun.jdbc.odbc.jdbcodbcdriver.connect(jdbcodbcdriver.java:174) @ java.sql.drivermanager.getconnection(drivermanager.java:571) @ java.sql.drivermanager.getconnection(drivermanager.java:233)
any help appreciated! thanks
java sql jdbc odbc
No comments:
Post a Comment