"SETUSER not allowed in procedures, triggers, events, or batches"
| Item |
Description |
|
SQLCode
|
-877L
|
|
Constant
|
SETUSER_NOT_IN_PROCEDURES
|
|
SQLState
|
42W09
|
|
ODBC 2 State
|
ERROR
|
|
ODBC 3 State
|
ERROR
|
|
Sybase Error Code
|
2534
|
|
Severity Code
|
16
|
Probable cause
The SETUSER statement is not allowed in stored procedures, triggers, event handlers, or batches, and cannot be called from an EXECUTE IMMEDIATE statement.