Advertisement
EmilianoRoldanR

SR - Error Database(Suspect)

Aug 24th, 2019
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.35 KB | None | 0 0
  1. --SR - Error Database(Suspect)
  2.  
  3. EXEC SP_RESETSTATUS  softrestaurant95pro;
  4.  
  5. ALTER DATABASE softrestaurant95pro SET EMERGENCY;
  6.  
  7. DBCC CHECKDB (softrestaurant95pro);
  8.  
  9. ALTER DATABASE softrestaurant95pro SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
  10.  
  11. DBCC CHECKDB (softrestaurant95pro, REPAIR_ALLOW_DATA_LOSS);
  12.  
  13. ALTER DATABASE softrestaurant95pro SET MULTI_USER;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement