Error 936 means SQL Server cannot use the database because it is not enabled for the edition of SQL Server you are running, or because the database is still in the middle of an upgrade or recovery that has not completed. The fix is almost always one of three things: finish the upgrade, restore or attach the database with the correct edition, or move it to an edition that supports it. Before you touch anything, take a full backup of the database and note the exact SQL Server version and edition you are running.

What You'll Need

  • Administrative access to the SQL Server instance (sysadmin or equivalent).
  • The database files (.mdf and .ldf) or a recent backup.
  • SQL Server Management Studio (SSMS) or Azure Data Studio.
  • Enough free disk space for a restore or copy of the database.
  • Knowledge of which SQL Server edition (Express, Standard, Enterprise, Developer) the instance is running.

Step-by-Step

  1. Confirm the exact error and context. In SSMS, connect to the instance and run SELECT @@VERSION; to see the version and edition. Then try USE [YourDatabase]; and read the full error text. Error 936 often appears alongside messages about the database being in an upgrade, recovery, or single-user state, or about the edition not supporting the database. Note every message, because the companion messages tell you which cause applies.
  2. Check the database state. Run SELECT name, state_desc, user_access_desc FROM sys.databases;. If the state is RECOVERY_PENDING, RECOVERING, UPGRADING, or SUSPECT, the database is not ready for use. If user_access is SINGLE_USER or RESTRICTED_USER, that can also block normal connections.
  3. If the database is mid-upgrade, let it finish. A database upgraded from an older SQL Server version may still be in the upgrade process. Check the SQL Server error log for messages about the upgrade completing. Do not restart the service repeatedly; give the upgrade time to finish. If it is stuck, review the error log for the specific failure before taking further action.
  4. If the database is in recovery, wait or force recovery. For a database stuck in recovery, first check disk space and the error log. If you must bring it online and you have a verified backup, you can run ALTER DATABASE [YourDatabase] SET ONLINE;. If that fails, restore from backup rather than forcing recovery on a damaged database.
  5. Check edition compatibility. Error 936 is frequently caused by a database created on a higher edition (for example Enterprise) being attached or restored to a lower edition (for example Express or Standard) that does not support features the database uses. Run SELECT SERVERPROPERTY('Edition'); and compare with the edition where the database was created. If the database uses Enterprise-only features, it cannot be used on Express or Standard without removing those features or moving to a supported edition.
  6. Restore or attach correctly. If you are moving a database between instances, use a backup and restore rather than copying files while the database is online. Take a full backup on the source, copy the .bak file, and restore on the target with RESTORE DATABASE [YourDatabase] FROM DISK = 'C:\Path\YourDatabase.bak' WITH MOVE .... If you must attach files, detach cleanly on the source first, then attach on the target with CREATE DATABASE [YourDatabase] ON (FILENAME = '...') FOR ATTACH;.
  7. Bring the database online. Once the cause is resolved, run ALTER DATABASE [YourDatabase] SET ONLINE; and then ALTER DATABASE [YourDatabase] SET MULTI_USER; if it was left in single-user mode. Verify with SELECT name, state_desc FROM sys.databases; that the state is ONLINE.
  8. Test the connection. Connect with the application account, not just sysadmin, and run a simple query against a table in the database. This confirms permissions and state are both correct.

Common Mistakes

  • Restarting the SQL Server service repeatedly while an upgrade is in progress, which can prolong or complicate the upgrade.
  • Copying .mdf and .ldf files from a running instance instead of taking a backup, which often produces a database that cannot be brought online.
  • Assuming error 936 is a permissions problem. It is a state or edition problem, so granting more rights will not fix it.
  • Forcing a suspect database online without a verified backup, which risks data loss.
  • Restoring an Enterprise-created database onto Express or Standard without checking for unsupported features first.

Tips

  • Always take a full backup and verify it before any recovery or attach operation.
  • Keep the source and target SQL Server versions close; restoring to an older major version is not supported.
  • Check the SQL Server error log early; it usually names the exact reason the database cannot be used.
  • Use DBCC CHECKDB on a restored copy before putting the database back into production.
  • Document the edition and version of each instance so future moves do not hit the same error.

Troubleshooting

If ALTER DATABASE ... SET ONLINE fails, read the accompanying error message. A message about the log file usually means the log is missing or corrupt; restore from backup rather than rebuilding the log unless you accept possible data loss. A message about the edition means the database uses features your edition does not support; move it to a supported edition or remove those features on a copy first. If the database remains in recovery for a long time, check free disk space on the drive holding the database and log files, and review the error log for I/O errors. If the instance itself will not start, address that first; error 936 is a database-level message and cannot be resolved while the engine is down. When in doubt, restore the latest verified backup to a new database name, confirm it is healthy, and then decide how to proceed.

Frequently Asked Questions

What does SQL Server error 936 mean?

It means the database cannot be used because it is not in a usable state, typically because it is still upgrading or recovering, or because the current SQL Server edition does not support it.

Is error 936 a permissions issue?

No. It is about database state or edition compatibility. Granting additional permissions will not resolve it.

Can I fix error 936 by restarting SQL Server?

Sometimes a restart helps if the database is stuck in recovery, but if an upgrade is in progress, restarting can make things worse. Check the error log first.

Why does error 936 appear after restoring a database?

The database may have been created on a higher edition or a newer version than the target instance supports, or the restore may not have completed cleanly. Check the edition and the restore output.

Will I lose data fixing error 936?

Not if you have a verified backup. Forcing recovery or rebuilding a log without a backup can cause data loss, so always back up first.

Can I use an Enterprise database on SQL Server Express?

Only if the database does not rely on features Express does not support. If it does, you must move to a supported edition or remove those features on a copy.