Adding a Custom Attribute to a Data Source

You use the Profiles resource to add custom attributes to a data source partition. Custom attributes are application specific.

Typically, the attributes that are common to all profile definitions or data stores are stored in the ClassDef or SourceDef table. However, there might be specific attributes that apply only to certain selected data source objects.

For example, you can create a custom attribute to maintain the sort order of data sources or partitions on a data source, or to help you maintain consistency with other objects, such as member definition and source definition objects.

Data source custom attributes are available only within the Profiles resource; you cannot add them using the Business Desk Profiles modules.

To add a custom attribute to a data source partition

  1. Expand Commerce Server Manager, expand Global Resources, expand Profiles (<server name_database name>), expand Profile Catalog, expand Data Sources, right-click the data source that contains the partition to which you want to add a custom attribute, and then click Properties.
  2. In the <data source>Properties dialog box, on the Partitions tab, select the partition to which you want to add a custom attribute, and then click Edit.
  3. In the Properties dialog box, on the Custom Attributes tab, click New to add attributes to the data source.
  4. In the Custom Attribute dialog box, do the following:
    Use this To do this
    Name Type a programmatic name for the attribute. The name can contain a maximum of 127 alphanumeric characters and the underscore (_) symbol. The name cannot contain spaces.
    Display Name Type the name you want displayed for the attribute. The display name can contain a maximum of 127 Unicode characters.
    Description Type a description for the attribute. The description can contain a maximum of 127 Unicode characters.
    Value Type a value for the attribute.
  5. To save the custom attribute, click OK.
  6. To save the partition information, click OK.
  7. To return to Commerce Server Manager, click OK.

The data source is saved with the custom attribute.

For information about data source custom attributes, see Custom Attributes for Profile Data Source Partitions.

Copyright © 2005 Microsoft Corporation.
All rights reserved.