Forums Register Login

Odbc Jdbc Questions

+Pie Number of slices to send: Send
I'm on Unix/Linux and don't have ODBC. Now what?

Check out unixODBC

How can I create a dynamic DSN?

Dynamic DSN's are created with connection strings that contain information about the driver to use as well as where to find the source data.

Here is an example of a dynamic DSN for Access

for 32-bit Java:


for 64-bit Java:


Here is an example of a dynamic DSN for SQL-Server



Please note the above is given as a further example but for SQL-Server you should really use one of the freely available type-4 drivers.

Can I use the Bridge Driver in an applet?

No. All things are possible in some way but in this particular case it is difficult, and unwieldy enough to render it highly impractical. Amongst the problems:


You can use other drivers (types 3 and 4 preferred) to connect your applet to a database except for Access. Access is a desktop database product and it can only work with commercial type 4 JDBC driver at http://www.hxtt.com/access.html for Applet.

How can I use Hibernate with Access?

Hibernate doesn't support Access out of the box, but you can use HXTT's Hibernate dialect.

The HXTT driver (linked above) supports Hibernate 3.

If you're serious enough about databases to use ORM, you should probably consider using some other database.



JdbcFaq
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


You can read but need at least 5 cow(s) to post
This thread has been viewed 2033 times.
Similar Threads
java and ms access 2007 error "Data source name not found and no default driver specified "
Problem creating a Microsoft Access connection from a file
Creating DSN
Connecting to a database
how to create new ms acess database using Java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:48:38.