Ok. I got it. It's one call "values 
syscs_util.syscs_get_database_property('DataDictionaryVersion');". Thanks for 
the hint.

Are there any drawbacks for using "upgrade=true" in the connection for any 
db-connection of our app?


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Gesendet: Montag, 7. September 2009 13:28
An: Derby Discussion
Betreff: Re: Database version

Stefan Rehlig <[email protected]> writes:

> Hi,
>
> how can i get the number of the derby version, that was used to create the
> database? Is there any sys procedure available?

The query below may help. It tells you the version of the data
dictionary, which corresponds to the Derby version that created the
database. If you have upgraded the database later (booted the database
with a higher version and specified the upgrade=true connection
attribute), it will show the version to which it was upgraded, and not
the version that created it.

ij> values syscs_util.syscs_get_database_property('DataDictionaryVersion');
1                    
---------------------------
10.6

1 row selected

-- 
Knut Anders

Reply via email to