Commerce Server Catalog - Rebuilding Virtual Catalogs

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server Catalog > November 2005 > Rebuilding Virtual Catalogs





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rebuilding Virtual Catalogs
Tbone

2005-11-02, 5:50 pm

Where can I find info on automating the rebuild of virtual catalog in off
peak times?


WenJun Zhang[msft]

2005-11-03, 7:49 am

Hi,

To rebuild a specific virtual catalog, you can use the following code:

Set oCatMan = CreateObject("Commerce.CatalogManager")
VirtualCatalogName = "Catalogname"
call oCatMan.Initialize("sitename", false)
Set oProdCatalog = oCatMan.GetCatalog(VirtualCatalogName)
oProdCatalog.RebuildVirtualCatalog true, true

OR

To rebuild all the virtual catalogs:

Set oCatMan = CreateObject("Commerce.CatalogManager")
call oCatMan.Initialize("sitename", false)
oCatMan.RebuildAllVirtualCatalogs true, true

Hope the sample above will help. Please let me know if you have further
question.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com