How to repair corrupt SharePoint Database
I would also like to share an article where you can also get simple method to recover content database, documents, list, wikis etc in safe manner. Here you can also find a way to restore your deleted records of SharePoint like: deleted sites with sub-sites. SharePoint stores data of all document libraries, site collections and lists in SQL databases. If SQL databases are damaged, you will lose important SharePoint data.However, SharePoint stores all its contents in a separate SQL Server machine. So, each data is not lost. The main problem is recovery. The recovery is based on two servers. The first one is running all your SharePoint services and the second one is Dedicated SQL server. Most users run Microsoft Office SharePoint Server (MOSS) 2007, but most people also apply Windows SharePoint Services (WSS).