'%1' statement is not allowed on a mirrored database

Error constant SQLE_STMT_NOT_ALLOWED_WITH_MIRRORING
ODBC 2 State ERROR
ODBC 3 State ERROR
Parameter 1 Statement that generates the error.
Severity 16
SQLCODE –1288
SQLSTATE WW120
Sybase error code 13666
Probable cause

You attempted to execute a statement that is not allowed when using a mirrored database.