In this blog post, you’ll learn more about the Sybase Error Data definition statements not allowed in procedures or triggers and the reason for receiving this error
Sybase SQL Error Message
Data definition statements not allowed in procedures or triggers
Reason for this Error
The procedure or trigger definition contains a data definition statement (such as CREATE, DROP, GRANT, REVOKE, or ALTER). These statements are not allowed within procedures or triggers.