無法使用 SQL Studio Express 管理 WSS 3.0

無法使用 SQL Studio Express 管理 WSS 3.0

我有一個在 Server 2008 R1 上運行的 WSS 3.0。日誌檔案已成長到近 15GB,需要壓縮/清除,因為硬碟空間不足。我已使用 SQL Studio Express 連接到資料庫“\.\pipe\mssql$microsoft##ssee\sql\query”,但是在右鍵單擊 SharePoint_Config 資料庫並選擇“屬性”時出現以下錯誤:

=======================================

財產所有者不適用於資料庫「[SharePoint_Config_29c26fca-17b8-48c1-9704-b869932abcb6]」。該物件的該屬性可能不存在,或由於存取權限不足而無法檢索。 (微軟.SqlServer.Express.Smo)

------------------------------ 如需協助,請點選:http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.5000.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.PropertyCannotBeRetrievedExceptionText&EvtID_Text&Evt

------------------------------ 節目地點:

在Microsoft.SqlServer.Management.Smo.PropertyCollection.HandleNullValue(Int32 索引) 在Microsoft.SqlServer.Management.Smo.PropertyCollection.GetValueWithNullReplacement(字串propertyName,布林throwOnNullValue) 在Microsoft.SqlServer.Sment.Sment.在Microsoft.SqlServer.Management.SqlManagerUI.CreateDatabaseData.DatabasePrototype.DatabaseData..ctor(CDataContainer context,字串databaseName)位於Microsoft.SqlServer.Management.SqlManagerUI.CreateDatabaseData.DataPrototype.LoadDefinition. SqlManagerUI。

我正在嘗試遵循此處解釋的程序:http://luka.manojlovic.net/2008/06/15/reduce-sharepoint-services-30-logldf-files/

答案1

我之前在 Windows Small Business Server 2008 上見過這種情況,其中 SharePoint_Config 資料庫擁有者為 NULL。我不知道它是如何或為何發生的,但您可以使用以下命令查看您的情況是否屬於這種情況sp_helpdb。如果你發現它是你可以使用sp_changedbowner設定所有者。在 SharePoint_Config 資料庫上將擁有者設定為sa可以正常運作。

基本上,您可以使用 SSMS 連接到資料庫並執行以下查詢:

USE [SharePoint_Config_29c26fca-17b8-48c1-9704-b869932abcb6]
GO
EXEC sp_changedbowner ‘sa’
GO

這將設定所有者。

相關內容