Finished OperationAllowed SQL replacement