Thursday, May 9, 2013

Event ID 3760 - SQL Database 'DataBase Name' on SQL Server instance 'Instance Name' not found. Additional error information from SQL Server is included below...



Event Details

Product:
Windows SharePoint Services
ID:
3760
Source:
Windows SharePoint Services 3
Version:
12.0
Symbolic Name:
ULSEvtTag_3760
Message:
SQL Database '%1' on SQL Server instance '%2' not found. Additional error information from SQL Server is included below.
%3


שלום חברים,
היום ביקרתי אצל לקוח שלנו ונדרשתי לעבור על Error  ו- Warnings בשרתיי הייצור. לאחר מעבר על ה-Logs עלו מספר שגיאות שאחת מהם הייתה השגיאה הבאה : 

SQL Database '%1' on SQL Server instance '%2' not found. Additional error information from SQL Server is included below.
%3
השגיאה מדברת על DataBase בחווה שה-SharePoint לא מצליח לזהות שהוא נמחק וזאת בגלל שעדיין יש רשומות בטבלת Config בהן ה-DataBase מופיע, כנראה שה-DataBase נמחק בצורה יזומה דרך ה-SQL Management Studio או אופציה אחרת שה-Service Application נמחק בצורה לא נכונה. 

הפתרון לבעיה הוא למחוק את הרשומות בהם ה-DataBase הרלוונטי מה-Config DataBase ע"י שימוש ב-PowerShell, להלן סדר הפעולות הנחוץ למחיקת ה-DB : 

פתח  SharePoint Management Shell והקלד את הפקודה הבאה - 

Get-SPDatabase | fl name, id

מצא את ה-DataBase הרלוונטי והעתק את ה-ID שלו, לאחר מכן הקלד את הפקודות הבאות -

$db = Get-SPDatabase <id>
$db.Delete()
בדוק לאחר מס' דקות - שעה האם ה-Error חוזר ( הוא לא :) )

בהצלחה !

רון נס.

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


Problem : 

This was caused because creating and deleting a service application, and then going into SQL Management Studio and manually deleting the associated service application database. SharePoint still had a record of the database in its config database.

Solution : 

Delete the record of the orphaned database using PowerShell

Open SharePoint Management Shell
Type: Get-SPDatabase | fl name, id
Find the database you wish to remove and select its ID.
Type: $db = get-spdatabase <id>
Type: $db.delete()

Good Luck :)

Ron Ness.

No comments:

Post a Comment