File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes foreign keys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "foreign keys" Watch "foreign keys" New topic
Author

foreign keys

shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
Hi,
I am using DatabaseMetaData.getImportedKeys() to get the foreign keys of a table. I am using sybase and the jdbc driver provided by it. My problem is this method is not returning the foreign keys for some tables. But it is working fine if I change the driver to odbc driver and use the jdbc-odbc bridge.What could be the reason for these differences? I think this is the best way to get the foreign keys. Can anyone help me out of this??
Thanx in advance,
shankar.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: foreign keys
 
Similar Threads
Getting error while saving image as blob in oracle
Server stops automatically with EXCEPTION_ACCESS_VIOLATION
How to rollback multiple prepared statements
connection url
jdbc thin driver