Database is active

Item Value
SQLCODE -664
Constant SQLE_DATABASE_ACTIVE
SQLSTATE 08W40
Sybase error code 13708
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

An attempt was made to create a writefile for a database that is currently active.