Sql server Database Suspected marked?

My sql server marked one database as suspected , on checking i found my mdf,ldf files are missing, but no errors on chkdsk, what it means some virus ?

  • Searching in SQL Management Studio 2005
  • How to save a file path at database?
  • Execute queries stored in columns of a SQL Server table
  • BULK INSERT fails with row terminator on last row
  • JDBC How to get all generated keys from single insert with many values query?
  • Word matching in SQL Server
  • 4 Solutions collect form web for “Sql server Database Suspected marked?”

    Either the files were deleted, or they have been moved and a master database backup restored from before the change in location. In both cases the physical files can only be deleted or moved if the database is offline – either because sql server was shut down or the database was closed.

    Either of these things is highly unlikely to have happened accidentally. It’s unlikely to be a generic virus or trojan as such would either have to specifically delete the files on startup before SQL Server started (assuming your database starts automatically) or shut down the database then specifically delete the files. Given that chkdsk doesn’t report errors either it’s unlikely to be a disk issue, so it’s a virtual certainty that the cause of the error is deliberate database (mis)management.

    I think the most likely option is that a dba has decided that the files should be moved elsewhere – typically this is done for space or performance reasons – for instance if a new drive is added to a machine that is running out of space then the database could be moved to that. For some reason a backup of the master database has subsequently been restored from a point before the move.

    My first action would be to do a full scan of the system for all mdf/ldf files and (hopefully) locate them. I’d also do a scan of backups and look for the latest master database backup. You could either then try restoring the last master backup and see if that fixed the issue (i’d back up the current master first of course), and failing that, or directly, reattach the missing files.

    If you cannot find the mdf/ldf files then your only option is restore from backup. If you don’t have a backup then your database is lost.


    At startup, SQL Server attempts to obtain an exclusive lock on the device file. If the device is being used by another process (for example, backup software) or if the file is missing, the scenario described above will be encountered. In these cases, there is usually nothing wrong with the devices and database. For the database to recover correctly, the device must be made available, and the database status must be reset.

    It means someone deleted the files.

    They can not be deleted when in use so it happened:

    • when SQL Server was shut down
    • the database was closed (Express version usually)
    • the database was taken offline

    All user dbs will share the same folder (edit) by default (end edit) so this is deliberate

    The more exotic options include restoring the master db where the databases/MDF files listed in the restored master db do not exist etc. But I doubt it.

    In SQL Server suspect database is a mode when user unable to connect with database.
    At this time user unable to perform any action and can not do anything like no open no backup and no restore etc.

    Possible cause for this problem can be one of the following:
    1. Database is corrupted
    2. Insufficient memory state.
    3. unexpected shutdown etc.
    4. OS is unable to find the database file

    MS SQL Server is a Microsoft SQL Database product, include sql server standard, sql server management studio, sql server express and so on.