STSADM: addcontentdb error



We created a web application and tried to replace the content database with another database. When run command:


stsadm –o addcontentdb –url http://abc –databasename WSS_ABC.


Following error displayed:


An update conflict has occurred, and you must re-try this action. The object SPWebApplication Name=SharePoint – 41272 Parent=SPWebService is being updated by domain\loging, in the OWSTIMER process, on machine ABC. View the tracing log for more information about the conflict.




The solution was to force cache refresh. This can be done as under:


1. On Central Administration machine, move from C\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\ GUID.

2. Copy cache.ini file to another location.

3. Open the file and replace the current integer with 1.

4. Restart “Windows SharePoint Services Timer” service.
5. Run the command again.


Hope this workJ.



  1. Chandra said

    Thank you very much for the tip.

    It worked for me.

    • Bebandit said

      This works perfectly. Thanks for posting!

  2. Vijay said

    It is not working for me, please help me.

    • Farhan Faiz said

      Any details? Like SQL server version? SharePoint version? Database size?

      • Vijay said

        Sql Version is SqlServer 2005
        SharePoint 2007
        Database size Normal

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: