Finding a database in Suspect Mode. There can be many reasons for a SQL Server database to go in a suspect mode

Possible Causes

  • The database could have become corrupted.
  • There is not enough space available for the SQL Server to recover the database during startup.
  • The database cannot be opened due to inaccessible files or insufficient memory or disk space.
  • The database files are being held by the operating system, third party backup software, etc.
  • There was an unexpected SQL Server Shutdown, power failure, or a hardware failure.

1. Open Microsoft SQL Server Management Studio
2. Connect to your database
3. Open new New Query
4. Add the following script and change [YourDatabase] after that start Execute

EXEC sp_resetstatus [YourDatabase];
ALTER DATABASE [YourDatabase] SET EMERGENCY
DBCC checkdb([YourDatabase])
ALTER DATABASE [YourDatabase] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ([YourDatabase], REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE [YourDatabase] SET MULTI_USER

Depends on database size how long will execute.
After that go and click the refresh button on Microsoft SQL Server Management Studio.
Your database should no longer be tagged as (suspect) and you should be able to access it.


Fatal error: Uncaught Error: Call to undefined function get_field() in /home/sieichtech/public_html/wp-content/plugins/ohio-extra/widgets/widget-about-author.php:78 Stack trace: #0 /home/sieichtech/public_html/wp-includes/widgets.php(1261): ohio_widget_about_author->widget() #1 /home/sieichtech/public_html/wp-content/themes/ohio/single.php(53): the_widget() #2 /home/sieichtech/public_html/wp-includes/template-loader.php(106): include('...') #3 /home/sieichtech/public_html/wp-blog-header.php(19): require_once('...') #4 /home/sieichtech/public_html/index.php(17): require('...') #5 {main} thrown in /home/sieichtech/public_html/wp-content/plugins/ohio-extra/widgets/widget-about-author.php on line 78