If it happens that the 'sa'-password for your ASE is lost, it can reset following the below steps:
1. As you cannot log in to your server as sa anymore, you will have to shut it down forcefully, using an approbriate operating system command, like 'kill' on Unix Solaris.
2. When it is shut down, modify the ASE server's RUN-file as shown in the below example:
/usr/local/sybase/ASE-12_5/bin/dataserver
-sASE_SERVER_NAME
-d/var/sybase/ASE_SERVER_NAME/devices/master
-e/user/local/sybase/ASE-12_5/install/ASE_SERVER_NAME.log
-c/user/local/sybase/ASE-12_5/ASE_SERVER_NAME.cfg
-M/user/local/sybase/ASE-12_5
-psa \
Adding "-psa" to the last line of the file will generate a new password for the 'sa' login. The new password will be written to the standard output and not to the errorlog, so make sure you have console access and do not restart the server using services facilities.
The output will look like this:
New SSO password for sa:dcpfmkyqjbefp3
If you are able to log in to your ASE, make sure to change the sa password using the system procedure "sp_password". Also, do not forget to remove the "-psa" line from your RUN-file.