SharePoint Content Db in Suspect mode
While I was accessing my SharePoint site, suddenly, it threw the
following error:
A connection was successfully established with the server, but
then an error occurred during the login process. (provider: Shared Memory
Provider, error: 0 - No process is on the other end of the pipe.)
Description: An unhandled exception occurred during the execution
of the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A
connection was successfully established with the server, but then an error
occurred during the login process. (provider: Shared Memory Provider, error: 0
- No process is on the other end of the pipe.)
A few times, I also got the following error:
Cannot open database "MyDb" requested by the login. The
login failed.
Login failed for user 'Domain\Username'.
I opened SQL Server Management Studio and got to know that the
Content Database was in "Suspect" mode. So, how do we bring this up
to Normal mode.?
EXEC sp_resetstatus ‘YOUR_DATABASE_NAME’;
ALTER DATABASE YOUR_DATABASE_NAME SET EMERGENCY
DBCC checkdb(‘YOUR_DATABASE_NAME’)
ALTER DATABASE YOUR_DATABASE_NAME SET SINGLE_USER WITH
ROLLBACK IMMEDIATE
DBCC CheckDB (‘YOUR_DABASE_NAME’, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE YOUR_DATABASE_NAME SET MULTI_USER
very neat explanation keep it up
ReplyDeletesharepoint 2013 administration certification