Results 1 to 3 of 3
Thread: without ODBC
- 06-13-2007, 01:30 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 164
- Rep Power
- 7
without ODBC
Hi,
I'm a little bit new in Java, and I can open a data base SQLServer but I do with an ODBC, I know that when I want to run the application I need to create ODBC, is there any way to connect to the data base without ODBC?
this is my code
thank youJava Code:try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:SIGSA", "sa", "admin"); stm = con.createStatement(); }Last edited by Heather; 06-29-2007 at 02:27 PM.
- 06-13-2007, 02:22 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 119
- Rep Power
- 0
You count with JDBC = Java Database Connectivity
This is the standard to connect to a data base from java. The API defines the method and interfaces to connect
You have to download the jar, and then put it in the classpath of your application
- 06-29-2007, 02:42 PM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 130
- Rep Power
- 0
Similar Threads
-
Using JDBC-ODBC bridge
By Java Tip in forum Java TipReplies: 0Last Post: 02-06-2008, 09:21 AM -
[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
By leonard in forum JDBCReplies: 1Last Post: 08-06-2007, 09:24 PM -
Security Violation:attempt to use Restricted Class: sun.jdbc.odbc.JdbcOdbcDriver
By Heather in forum Advanced JavaReplies: 1Last Post: 07-14-2007, 05:59 PM -
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
By Marcus in forum JDBCReplies: 1Last Post: 06-27-2007, 05:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks