3932 Only an ET or null statement is legal after a DDL Statement.
A DDL statement was issued previously. By our current rules, the only time that a DDL statement can be issued inside an explicit transaction is when it is the last statement in that Transaction. In an explicit transaction, the only statements allowed after a DDL statement are an END TRANSACTION , an unconditional ABORT, or a NULL statement.
Either do the DDL statement as a single statement transaction, or commit the containing transaction immediately after the DDL statement.