Previous in Contents Next in Contents

DBStorage.InsertData Method

The InsertData method inserts data into the database storage.

Syntax

DBStorage.InsertData(Null, Data)

Parameters

Null
This parameter is required for compatibility with Commerce Server 2.0, but is not used.
Data
An object that contains the data to insert. The type of this object corresponds to the object type specified as the programmatic identifier in the initial call to InitStorage.

Example

The following example creates and initializes a Dictionary object to a set of values, and then inserts the object's data into a database table:

<% Set Dictionary = Server.CreateObject("Commerce.Dictionary")
Dictionary.order_id = orderID
Dictionary.shopper_id = shopperID
Dictionary.status = 5
call MSCSReceiptStorage.InsertData(Null, Dictionary)
%>

Related Topics


© 1997-2000 Microsoft Corporation. All rights reserved.