You cane run following basic command after login in Sybase ASE

The time when it was started.

1> SELECT @@boottime
2> go

                                
 -------------------------------
             Apr 16 2015  4:53PM

(1 row affected)

 

ASE Server Name.

1> SELECT @@servername
2> go


 ------------------------------
 SK1                            

(1 row affected)

 

Current Date.

1> select getdate()
2> go


 -------------------------------
             Apr 18 2014  1:11PM

(1 row affected)

 

Database Name.

1> select db_name()
2> go


 ------------------------------
 master

(1 row affected)

 

For checking the status of last executed command/sql.

1> select @@error
2> go


 -----------
           0

(1 row affected)

 

Version of ASE Data Server.

1> select @@version
2> go


 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Adaptive Server Enterprise/16.0 SP04 PL01/EBF 29704 SMP/P/x86_64/SLES 12.4/ase160sp04pl01x/3473/64-bit/FBO/Tue Jul 20 07:58:11 2021

(1 row affected)