Cannot Create DBStorage Obj. w/Multiple Column Primary Key Table

ID: Q160416

The information in this article applies to:

Q. Can you create a DBStorage object that uses a table whose primary key

   has multiple columns?

A. No. DBStorage is typically used to manage the basket, receipt, and
   shopper data. The InitStorage method can only take one column name, and
   that column should be unique (DBStorage itself does not enforce
   uniqueness.) For shopper, receipt and basket data this is not a
   limitation because there is always one unique column in the concerned
   tables.

   The GetData, InsertData, LookupData, and DeleteData methods of the
   DBStorage object do not need a key. You can use the Content and
   Datasource objects in cases where you need to store information into a
   compound primary key.

Additional query words: kbfaq
Keywords          : kbusage CommMisc kbfaq
Version           : 2.0
Platform          : IDEAS WINDOWS
Issue type        : kbinfo

Last Reviewed: July 18, 1997