Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

當我們在 SQL server 中變更資料庫的預設位置並建立新的 web 應用程式時,內容資料庫將會儲存到先前的位置,而不會使用 SQL server 上變更的設定。

原因

變更只有在您重新開機 SQL Server 或 SQL 服務之後才會生效。必須重新整理從 SharePoint 到 SQL 的連線。

當您儲存位置時,會將它儲存為 DefaultData,然後 DefaultLog [HKEY_LOCAL_MACHINE \SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer

解決方案

解決此問題的解決辦法是重新開機 SQL server 或 SQL 服務

1. 開啟 SQL Server Management Studio 並聯機到您的 SharePoint 資料庫將 hosted2 的 SQL 實例。 以滑鼠右鍵按一下 [伺服器名稱] 或 [SQL 實例],然後按一下 [屬性]。 針對兩個數據(*)變更 [資料庫預設位置] 的資料庫設定。MDF):與記錄(*。LDF)4。 現在就可以測試建立新的資料庫,它會在新的資料庫 Defult 位置中建立。 但當您建立內容資料庫時,它會在您先前使用的預設位置中建立資料檔案。 若要 aviod 重新開機 SQL 服務或重新開機 SQL 框。

其他相關資訊

 

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×