I had not seen this Bryan. Thank you for pointing it out. Seems like it would provide the information I'm looking for. I'll look into it.
Lisa On 2/18/2021 6:48 AM, Bryan Pendleton wrote: > Have you tried this? > https://db.apache.org/derby/docs/10.15/ref/rrefproperdatadictversion.html > > thanks, > > bryan > > On Wed, Feb 17, 2021 at 4:23 PM Lisa Ruby <[email protected]> wrote: >> Probably should have mentioned that I'm using derby version 10.15.2.0 >> and AdoptOpenJDK Java 11.0.9.11-hotspot >> >> Lisa >> >> On 2/17/2021 4:08 PM, Lisa Ruby wrote: >>> Hi, >>> >>> I am using derby in the embedded mode for a Java Windows desktop >>> application. I am trying to find a way that I can determine what version >>> my database is. When I use the Java Connection class >>> getMetaData().getDatabaseProductVersion() call it always returns the >>> version of the derby driver I am running, rather than the version of the >>> actual database. Or else it's returning the version of the database >>> after a soft upgrade, but not the underlying database version. Same for >>> getMetaData().getDatabaseMajorVersion() and >>> getMetaData().getDatabaseMinorVersion(). The reason I want to know the >>> version of the database is so I can determine if I need/want to do a >>> hard upgrade on the database. Is there any way for me to get the version >>> of the database from inside a Java program? >>> >>> Thank you. >>> >>> Lisa >>> >>
