Forums Register Login

registering

+Pie Number of slices to send: Send
1.How to connect/register to database without using the drivers?

I tried by using
DriverManager.getRegister("jdbc.odbc.driver.Oracle");

Not working.

2. How you will connect/register to database without using Class.forName("");?

thanking in advance.

regards
amit bhadre
+Pie Number of slices to send: Send
I haven't used oracles driver but typically you would do the following and the driver registers itself (via a static initializer).



Here is an article.

http://www.onjava.com/pub/a/onjava/synd/2001/08/21/jdbc.html
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 671 times.
Similar Threads
XML
JTable question
Without using Class.forName...
how to connect data base without jdbc?
jdbc with awt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:11:47.