$ 0 0 Forgot the GT for the drop index statements... CREATE GLOBAL TEMPORARY TABLE gt_drop_index_stmt ( txt VARCHAR(1000)) ON COMMIT PRESERVE ROWS;