The moose likes JDBC and the fly likes Connect to MS Access problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "Connect to MS Access problem." Watch "Connect to MS Access problem." New topic
Author

Connect to MS Access problem.

Boris Ackerman
Greenhorn

Joined: May 02, 2002
Posts: 1
After connect to MS Access with sun.jdbc.odbc.JdbcOdbcDriver driver I call getMetaData()
function and after that I try to call getPrimaryKeys(null , null , "Table Name") .
Here I get SQLException , that say - The Driver don't support this function.
Any body can help me , pls.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Your only real options are either live without the function, or find another driver to do the operation. The JDBC API defines a bunch of interfaces and the methods they should implement, but there is no (real) way of enforcing this. If the method isn't there, it isn't there.
Since you are using MSAccess and JDBC-ODBC, I'd say you're unlikely to find a workable solution. I always recommend changing databases, since MSAccess is pretty unsuitable. Try MySQL?
Dave


[ JavaRanch FAQ ][ Book Promotions ][ DbTamer ][ BumperStickers ][ JavaRanch Badges ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"York",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please re-register and select a new name which meets the requirements.
Thanks.
Dave
 
 
subject: Connect to MS Access problem.
 
Threads others viewed
Driver
Problems with ResultSetMetaData getTableName()
Not showing Ms access driver
JDBC - Access Connection
database
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture