Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Bernd Steinhauer asked how to get the database version with SQL. Brett Randall suggested selecting owner from systables where tabname is ' VERSION', but Wolfgang Zager and Christian Knappke said it shows the creation-time version. Christian gave DBINFO('version','full') on systables tabid 1, available since 7.31. Jonathan Leffler listed the specifiers: full, server-type, major, minor, os, level.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Bernd Steinhauer — — source: Informix-list mailing list archive (1991-1998)
Hello,
is it possible to retrieve the database-version via SELECT-statement ?
Thanks
Bernd
↪ replying to Brett Randall
Wolfgang Zager — — source: Informix-list mailing list archive (1991-1998)
Brett Randall wrote:
>
> select owner
> from systables
> where tabname = " VERSION">
> ^ note space
>
> Bizarre, I know ...
>
> Brett Randall
>
> Bernd Steinhauer wrote:
>
> > Hello,
> >
> > is it possible to retrieve the database-version via SELECT-statement ?
> >
> > Thanks
> > Bernd
The problem doing this select is, that You get the version, which was
used
when the database was created. This may differ from the actual version,
if
You did an update in between.
A far better seems to me to use an "dbaccess -V" instead
--
*******************************************************************************
* Any opinions written in this e-mail are my own. They may not
correspond to *
* those of my
company. *
*******************************************************************************
* Wolfgang Zager Berghauser Str.
104 *
* BAB Data-Systems GmbH D-42349
Wuppertal *
* Abt. Programmierung Tel. : +49 202
479870 *
* Fax : +49 202
470035 *
* E-Mail:
zager@gmx.de *
*******************************************************************************
↪ replying to Bernd Steinhauer
Brett Randall — — source: Informix-list mailing list archive (1991-1998)
select owner
from systables
where tabname = " VERSION"
^ note space
Bizarre, I know ...
Brett Randall
Bernd Steinhauer wrote:
> Hello,
>
> is it possible to retrieve the database-version via SELECT-statement ?
>
> Thanks
> Bernd
↪ replying to Brett Randall
Christian Knappke — — source: Informix-list mailing list archive (1991-1998)
"Brett Randall" <Brett@reply.to.newsgroup> ...
> select owner
> from systables
> where tabname = " VERSION">
> ^ note space
>
> Bizarre, I know ...
Unfortunately this is a shortened version (without the F,U or T)
and more the version number of the sysmaster database when it was
*installed*. This is not necessarily the version you are running
now after some db upgrades...
Since 7.31 the dbinfo function can do the trick:
SELECT DBINFO('version', 'full') FROM systables WHERE tabid = 1;
For more options see the SQL syntax guide.
>
> Brett Randall
>
> Bernd Steinhauer wrote:
>
> > Hello,
> >
> > is it possible to retrieve the database-version via SELECT-statement
?
> >
> > Thanks
> > Bernd
>
HTH
Christian
--
The opinions stated above are my own
and not necessarily those of my employer.
↪ replying to Christian Knappke
smooth1 — — source: Informix-list mailing list archive (1991-1998)
Another one for the FAQ!
Christian Knappke wrote in message <8ubiqc$2pj$1@news1.wdf.sap-ag.de>...
>
>"Brett Randall" <Brett@reply.to.newsgroup> ...
>> select owner
>> from systables
>> where tabname = " VERSION">>
>> ^ note space
>>
>> Bizarre, I know ...
>
>Unfortunately this is a shortened version (without the F,U or T)
>and more the version number of the sysmaster database when it was
>*installed*. This is not necessarily the version you are running
>now after some db upgrades...
>
>Since 7.31 the dbinfo function can do the trick:
>
>SELECT DBINFO('version', 'full') FROM systables WHERE tabid = 1;
>
>For more options see the SQL syntax guide.
>
>>
>> Brett Randall
>>
>> Bernd Steinhauer wrote:
>>
>> > Hello,
>> >
>> > is it possible to retrieve the database-version via SELECT-statement
>?
>> >
>> > Thanks
>> > Bernd
>>
>
>HTH
>Christian
>--
>
>The opinions stated above are my own
>and not necessarily those of my employer.
>
>
↪ replying to Bernd Steinhauer
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
Bernd Steinhauer wrote:
> is it possible to retrieve the database-version via SELECT-statement ?
According to the 9.20 Informix Guide to SQL: Syntax (6527.pdf from
http://www.informix.com/answers), you can use:
DBINFO('version', 'specifier')
Where specifier can be one of:
'full'
'server-type'
'major'
'minor'
'os'
'level'
On my 9.21.UC1 Foundation.2000 server, I get:
select
dbinfo('version', 'server-type'),
dbinfo('version', 'major'),
dbinfo('version', 'minor'),
dbinfo('version', 'os'),
dbinfo('version', 'level'),
dbinfo('version', 'full')
from systables where tabid = 1;
Informix Dynamic Server 2000|9|21|U|C1|Informix Dynamic Server 2000
Version 9.21.UC1
Kinda useful, those manual thingies! :-)
--
Yours,
Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h>
Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN
"I don't suffer from insanity; I enjoy every minute of it!"
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.