• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

foreign keys

 
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

reply
    Bookmark Topic Watch Topic
  • New Topic