Append user defined code after the end of a query statement

  1. On the Data Source tab, expand the tree view to locate the object.
  2. Right-click the source object and selectDetailed Properties > Processing Options > General.
  3. Under Code Generation, click Edit User defined code.
  4. From the Type drop-down field, select After End of Query Statement.
  5. Specify the code to be appended.
  6. Click Save.
  7. Compile the object.