You can specify SQL statements either in the APPLY Statement and/or in a file specified in the SQLCmdFileName attribute of the DDL operator. The order of execution will be:
- SQL statements specified in the <SQLFile>.
- SQL statements specified in the TPT script.
If the file given in the SQLCmdFileName attribute is empty and no SQL statement was provided in the APPLY statement, the job would result in an error.