Failures while upgrading a server installation fall into one of two categories: failure to upgrade an individual database, or failure to complete configuration changes after all databases have been upgraded.
dbcc traceon(990)
online database <failed_db_name>
$SYBASE/$SYBASE_ASE/upgrade/upgrade
declare @dbname varchar(255) select @dbname = min(name) from master..sysdatabases while @dbname is not null begin online database @dbname select @dbname = min(name) from master..sysdatabases where name > @dbname end