This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime db Oracle - SqlServer

 
aakash bhatt
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How in Java I can know at the run time which db i am using.
I do not have congiguration files/ table which says whicg db i am connected to.
My req is for a particular form if the db is Oracle I had to do certain functionality or if it is SQL Server another functionality
Regards,
aakash
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try the DatabaseMetaData class. It has methods such as getDatabaseProductName() and getDriverName() that might be useful.
Jamie
[ July 07, 2003: Message edited by: Jamie Robertson ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic