Share via


How to Add a Custom Attribute to a Data Source

You use the Profiles Schema Manager 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 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.

To add a custom attribute to a data source

  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 a display name that contains 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.

See Also

Other Resources

Managing Data Sources

How to Use the Profiles Schema Manager

About the Profiles Schema Manager