Unlike most other XQuery source-target mappings, SQL functions do not generate any output - any changes specified by the XQuery are performed directly on the database. However, a link from the SQL function block's output port to the Set Target Document pane is required in order to commit the XQuery mapping to Stylus Studio. This link is completed automatically for you by Stylus Studio when you create SQL insert and update functions using drag and drop. If you create these functions using the short-cut menu (right-click the Mapper canvas and select Function Block > DataDirect XQuery...), you must create this link manually. The same is true for delete functions, which cannot be created using drag-and-drop.