Article ID: 926961 - Last Review: May 14, 2007 - Revision: 1.2 Error message when you use SharePoint 3.0 Central Administration to try to re-add a content database in Windows SharePoint Services 3.0SYMPTOMSConsider the following scenario. You deploy Microsoft Windows SharePoint Services 3.0 on a single server by using a stand-alone installation. You use SharePoint 3.0 Central Administration to remove the content database. However, when you try to re-add the content database, you receive one of the following error messages: Database state cannot be changed while other users are using the database 'DatabaseName'
ALTER DATABASE statement failed.
sp_dboption command failed. Attaching this database requires upgrade, which could time out the browser session. You must use the STSADM command 'addcontentdb' to attach this database. Unknown Error CAUSEThis issue occurs if the connection pool contains a connection to the content database that was not closed. WORKAROUNDTo work around this issue, use the Stsadm.exe command-line tool with the addcontentdb operation to re-add the content database. Then, restart the SQL Server 2005 Embedded Edition service. To do this, follow these steps:
MORE INFORMATIONThe syntax for the Stsadm.exe command-line tool with the addcontentdb operation is listed as follows: stsadm.exe -o addcontentdb -url URL -databasename DatabaseName [-databaseserver DatabaseServerName] [-databaseuser UserName] [-databasepassword Password] [-sitewarning SiteWarning] [-sitemax SiteMaxCount] Note The -url and -databasename parameters are required. The other parameters are optional.
| Article Translations
|

Back to the top
