Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sybase Anyware. SQL query to determine DB version

What query or command to determine Sybase SQL Anyware version?

I use sqlsh + freetds as interactive client (in Emacs).

like image 347
gavenkoa Avatar asked Oct 13 '25 06:10

gavenkoa


1 Answers

For databases, you can use the SYSHISTORY system view to find out what version the database was created at.

select version from SYSHISTORY where object_id = OBJ_ID_OF_DB

If you databases were migrated from earlier installations, and don't show the version number you expect, you probably could just create a small database, and take a look at the version history information.

like image 130
Michael Gardner Avatar answered Oct 16 '25 07:10

Michael Gardner