filmov
tv
How to Recover MS SQL Database from Suspect Mode || Solved 100%

Показать описание
In this video I have explained How to recover database from suspect mode
in sql server. This solution works from Sql Server 2008 to Sql Server 2016
Just Follow the following simple steps:
1: Just Copy the code given below,
2: Open Sql server,
3: Open New Query Window,
4: Paste the code in the New Query Window.
5: Replace your problematic database name
with the database_name in the code given below.
6: Execute the query,
You are done.
--==================================================
Sample Code to Execute in Sql Server:
--==================================================
EXEC sp_resetstatus database_name;
ALTER DATABASE database_name SET EMERGENCY
DBCC CHECKDB (database_name)
ALTER DATABASE database_name SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB (database_name, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE database_name SET MULTI_USER
--==================================================
==================================================
Thanks for watching,
Please subscribe my channel.
==================================================
If you have any questions or queries, write them in comments below
or mail me at:
==================================================
Audio Used in Video:
The Coldest Shoulder
Credits: Youtube Free Music Library
in sql server. This solution works from Sql Server 2008 to Sql Server 2016
Just Follow the following simple steps:
1: Just Copy the code given below,
2: Open Sql server,
3: Open New Query Window,
4: Paste the code in the New Query Window.
5: Replace your problematic database name
with the database_name in the code given below.
6: Execute the query,
You are done.
--==================================================
Sample Code to Execute in Sql Server:
--==================================================
EXEC sp_resetstatus database_name;
ALTER DATABASE database_name SET EMERGENCY
DBCC CHECKDB (database_name)
ALTER DATABASE database_name SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB (database_name, REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE database_name SET MULTI_USER
--==================================================
==================================================
Thanks for watching,
Please subscribe my channel.
==================================================
If you have any questions or queries, write them in comments below
or mail me at:
==================================================
Audio Used in Video:
The Coldest Shoulder
Credits: Youtube Free Music Library
Комментарии