Sunday, March 25, 2012

Connecting to SQL from JBuilder

Hi everyone,

I am trying to connect to a SQL Server Database from an aplication in java, but I received the following error: No suitable driver

I am using JDBC and a ODBC connection call TP2. My string connection look like this

Connection con = DriverManager.getConnection ("jdbc:odbc:TP2", "sa", "sql");

What I do not have clear enought is where should I copy my jar files ??

I really appreciate your help !!!!!!!!!!!!!!
BRthis link may help u. http://forum.java.sun.com/thread.jspa?threadID=720810
and this, http://www.devdaily.com/java/edu/pj/pj010024/ if it is a connection error.
I ve no idea about the jar file u mentioned,better u post ur question in java forum.|||Download the MS JDBC driver or the jTDS JDBC driver

No comments:

Post a Comment