Detecting the Sybase DBMS version

The following SQL query will return your Sybase version --

SELECT @@VERSION