Re: JDBC connect to dabase fails, OK using ODBC
- From: dilip <linkbuilder2007@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 04:22:31 -0700
On Jul 31, 2:02 pm, kma...@xxxxxxxxxxxxxxx wrote:
Hi friends,myself dilip here are the following code for JDBC Connectivity.
Use that sample code according to your database name.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:<DSN_NAME>","User_Name","Password");
Statement st=con.createStatement();
above code may solve your difficulty hopefully.
Thanks,
Dilip Kuamr
http://www.intelcs.com/IT-Companies/
.
- Follow-Ups:
- Prev by Date: Re: record numbers
- Next by Date: Re: JDBC connect to dabase fails, OK using ODBC
- Previous by thread: Re: JDBC connect to dabase fails, OK using ODBC
- Next by thread: Re: JDBC connect to dabase fails, OK using ODBC
- Index(es):