Monday, October 27, 2014

Add/Remove Dlls from GAC in Windows Server 2012

http://camerondwyer.wordpress.com/2013/05/22/how-to-install-a-dll-to-the-gac-on-windows-2012-using-only-powershell-without-having-to-install-sdk-or-visual-studio/

Recover SharePoint config database from Suspect/Recovery mode to online state

Follow the steps given below in sequence one after another-

Steps
1.
use master
EXEC sp_resetstatus 'SharePoint_Config';
2.
ALTER DATABASE SharePoint_Config SET EMERGENCY
3.
DBCC checkdb('SharePoint_Config')
4.
ALTER DATABASE SharePoint_Config SET SINGLE_USER WITH ROLLBACK IMMEDIATE
5.
DBCC CheckDB ('SharePoint_Config', REPAIR_ALLOW_DATA_LOSS)
6.
ALTER DATABASE SharePoint_Config SET MULTI_USER