Rebuilding Virtual Catalogs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server Catalog > Rebuilding Virtual Catalogs




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Rebuilding Virtual Catalogs  
Tbone


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-02-05 10:50 PM

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







[ Post a follow-up to this message ]



    RE: Rebuilding Virtual Catalogs  
WenJun Zhang[msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-03-05 12:49 PM

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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:56 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register