Skip to main content

My SharePoint_Config Database fall over go bang

The other day I was tibnkering on my new demo rig (I love SSD's) and the whole OS Drive locked up on my, causing me to hard-crash the machine.


Uh-ho i thought... my VM was running at crash point... better check it over.


Lo and behold, my rig was dead on reboot.  Upon review my config_db was suspect - go figure - and I had to try and get it back (as I was going to lose quite a lot of work if i didn't).


So after a little trawl around I found the following.  I hope it helps someone else in the future:


Run this in SQL:



               alter database “Sharepoint_config” set emergency


Set DB to single user mode 



Run this in SQL to find the SPID for the connection to the Config_DB


                sp_who2


disconnect from SQL
ensure SQL Browser service started
open SQL Mgt but dont connect to the server
New Query


               Kill SPID# from SP_WHO2 (where # is the SPID noted previously)


use Sharepoint_config
dbcc checkdb ("sharepoint_config", repair_allow_data_loss)


Run the following SQL


               ALTER DATABASE DBNAME
               SET MULTI_USER


Your DB should now be back and happy

Comments

Popular posts from this blog

#projectserver2013 VIEW FAILURE: The view failed to load. Press OK to reload this view with the default settings. Press cancel to select another view.

** UPDATE ** includes notes relating to secondary bug where Timesheet is created without Administrative tasks. Does this ring any bells? This has been bugging me for months, but finally I have a repro for this: Issue Summary:  When a task is deleted from a plan that is approved into a previous or current timesheet - even when there are no actuals on the task - you can no longer view the timesheet The following repro has been proven: - Setup system with Single Entry Mode, with enforced Status Approval before Timesheet Approval - Create resource as own timesheet manager - Create new project - Create two tasks in the same week, starting monday with 5 days duration:  1) Task to assign actuals, 2) Task to delete post submission - Assign Resource to tasks - publish project - as Timesheet User, go to the appropriate timesheet period for the tasks created - Assign actual work to one task (task 1), leaving task 2 with no actual work - Submit timesheet - as Project ...

Issues update on #projectserver2013 - Timesheets and Publishing

Reporting Publish ** updated with links to other related discussions, and a VBA macro ** the following issue has been noted on publish since June 13 CU was applied: ReportingProjectChangeMessageFailed (24006) - Object reference not set to an instance of an object.. Details: id='24006' name='ReportingProjectChangeMessageFailed' uid='4d869e56-f625-e311-bb41-005056b90052' QueueMessageBody='Project UID='e3f49977-b2bc-e211-8559-005056b90052'. PublishType='ProjectPublish'' Error='Object reference not set to an instance of an object.'. I have seen this noted previously on a similar issue: http://nearbaseline.com/blog/2013/06/ms-reporting-project-publish-jobs-failed-after-aprilcu/comment-page-1/#comment-14741 This is  caused by Baselined Milestones having NULL Baseline Cost values Original bug note with potential workaround is here: http://blogs.msdn.com/b/brismith/archive/2012/05/23/project-server-2007-reporting-project-pu...

Deriving Milestone RAG Indicators from tasks to the Project Center

updated on 10 Dec 2010 - MS1-Var-P field names were wrong.  Hope Ive got it right this time!!! - Carl updated on 13 Dec 2010 - data types and task level rollups added to field definition (shame) Problem In the Project Centre you wish to show the status of your "Gateway" events that are held as Milestones in the project plans to provide a Milestone Summary view.  However there is no out of the box solution to doing this. The Approach Firstly you need a Task Level Custom Field that links to a lookup table that defines your milestones.  For Example: Field Name = C3_Milestone Type Lookup Table = Gateways LUT List = MS1, MS2, MS3, MS4, MS5 For each milestone you want to report on in the Project Centre (MS1...5), create the following field structure: Note:   -T represents task fields, -P represents project fields - MS1 Switch-T this is the control field that identifies the relevant task that is tagged with the Gateway = MS1 value (1), Baselined (2), Complete (4), ...