| | |
JDBC connection
![]() |
•
•
Join Date: May 2004
Posts: 2
Reputation:
Solved Threads: 0
First declare your URL (in string format of cours
Remember your URL is
1 a String
2 "jdbc:odbc:"+dataSourceName;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")//often the standard;
Connection con = DriverManager.getConnection(url,"username","password");
Statement stmt = con.createStatement();
this is as far as connection goes
Remember your URL is
1 a String
2 "jdbc:odbc:"+dataSourceName;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")//often the standard;
Connection con = DriverManager.getConnection(url,"username","password");
Statement stmt = con.createStatement();
this is as far as connection goes
![]() |
Similar Threads
- JDBC Connection with MySQL problem "Ubuntu 7.10" (Java)
- possible to initialize jdbc connection within jar. (Java)
- jdbc connection w/ config file (Java)
- JDBC Connection Pooling : Network Adapter could not establish the connection (Java)
- Can´t make JDBC connection to MS SQL from home? (MS SQL)
- JDBC connection (Java)
Other Threads in the Java Forum
- Previous Thread: Compilation problem
- Next Thread: Class Passing and Returning Arrays
| Thread Tools | Search this Thread |
-xlint 911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character class client code compile component consumer csv database desktop developmenthelp eclipse error fractal freeze ftp game gameprogramming givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list mac map method methods mobile netbeans notdisplaying number objects online oriented printf problem program project projects recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing system test textfields threads time title tree tutorial-sample ubuntu update windows working





