SQLItem

The SQLItem component runs a SQL query for each item in the items list, passing the specified OrderForm fields as parameters to the query. These fields can include name/value pairs from either the order or the item Dictionary.

Note

The SQLItem component is included in Commerce Server 3.0 only for backward compatibility with sites created in Commerce Server 2.0, in which the database connection is provided by the Content object in the Pipe Context. Commerce Server 3.0 sites should use the SQLItemADO component.

Remarks

You can pass name/value pairs from the order Dictionary as parameters to both the SQLItem and SQLOrder components. However, these components are not identical in the way that they use these name/value pairs.

The SQLOrder component executes the query that you specify once. This query cannot take parameter values from the items list.

The SQLItem component executes the query for each item in the items list. If you reference a name/value pair on the order Dictionary as a parameter to SQLItem, that name/value pair is passed as a parameter to each execution of the specified query. For example, if you use an INSERT query as the SQL command, and you specify order.order_id as a parameter, and the items list contains nine items, the value of order.order_id will be inserted nine times.


© 1997-1998 Microsoft Corporation. All rights reserved.