Wednesday, August 4, 2010

Error: Method not found: 'Microsoft.SharePoint.Administration.SPContentDatabase Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(System.String, System.String, System.String, System.String, Int32, Int32, Int32, Boolean, Boolean)

Error:
Method not found: 'Microsoft.SharePoint.Administration.SPContentDatabase Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(System.String, System.String, System.String, System.String, Int32, Int32, Int32, Boolean, Boolean)

Reason:
You will get this error while you are trying to add the content database in central admin for any of the existing website.

This is because of some bug in the MOSS 2007 SP2

Solution:
Anyhow you can easily add the content DB using the STSADM tool. Just go to the 12 hive folder in command prompt and type the below command.

stsadm -o addcontentdb -url "http://weburl:5005" -databasename "Your Content DB Name" -databaseserver "Your DB Server"

Thats it....

2 comments:

  1. The specified SQL server instance has invalid sort order Latin1_General_BIN. Ch
    oose a server instance that performs case-insensitive and non-binary comparisons
    .

    ReplyDelete
  2. Resolved, wrong url, using the right port 80.
    Thanks

    ReplyDelete