A USING modifier can be associated with one of the following types of requests:
- Any single-statement request except a DDL or DCL statement. An iterated request is a special case of this query type and must always have an associated USING modifier.
- A multistatement request.
- An explicit transaction. If the modifier is associated with an explicit transaction, the USING keyword must appear as the first keyword in that transaction.
If the first statement or request references a USING variable, the USING clause should immediately precede the BEGIN TRANSACTION statement. See Example: USING Request Modifier Reads Character Strings.