How to Add or Modify Application Resources
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
A resource is an entity that provides functionality to the applications in a Commerce Server site. There are two types of resources: global resources and site resources. Global resources are available for use by all sites; site resources provide functionality to a specific site.
Resources include properties that are stored in the Commerce Server Administration database. You can access and change these properties by using the Commerce Server Resources module window in the Microsoft Visual Studio development system.
The Commerce Server Resources module window is only available in Commerce Server projects. For more information about creating a Commerce Server project, see How to Create a Commerce Server Application in Visual Studio.
The following table identifies the Commerce Server resources.
Resource |
Description |
Type |
---|---|---|
Profiles |
Creates data sources for storing profile data, and creates and stores profile definitions and properties. |
Global |
Data Warehouse |
Imports and manages Web site data from Web log files, Commerce Server databases, and other data sources. |
Global |
Inventory |
Connects to the database that stores data about inventory. |
Site |
Marketing |
Connects to the database that stores data about campaigns (ads, discounts, and direct mail). |
Site |
Product Catalog |
Connects to the database that stores catalog data and product data. |
Site |
CS Authentication |
Configures the authentication and identification method for your Commerce Server site. |
Site |
Transaction Config |
Connects to the database that stores data for shipping methods and rates, state and region codes, and order status codes. |
Site |
Transactions |
Connects to the database that stores data for baskets and orders. |
Site |
To add a Commerce Server resource to an application
On the Website menu, point to Commerce Server Project, and then click Resources.
In the Commerce Server Resources module window, right-click the name of your application and then click Add Commerce Server Resource.
In the Add Resource Form dialog box, select the PuP package that contains the resource you want to add, and then click Open.
The Comerce Server Site Packager window opens.
To add the resource, follow the procedure in the topic How to Add a Resource to a Site.
To delete a Commerce Server resource from an application
On the Website menu, point to Commerce Server Project, and then click Resources.
In the Commerce Server Resources module window, right-click the name of the resource you want to delete, and then click Delete.
Click Yes to confirm that you want to delete the resource.
To modify a Commerce Server resource
On the Website menu, point to Commerce Server Project, and then click Resources.
In the Commerce Server Resources module window, right-click the name of the resource you want to delete, and then click Properties.
In the left column of the Properties module window, select the name of the property you want to modify.
In the right column, enter the new value for the property.
Important Note: If you change a connection string in a Commerce Server resource, you must restart IIS or the Visual Studio application.
See Also
Other Resources
Accessing the Commerce Server Tools from within Visual Studio