Database 'XXX' is in transition. Try the statement later.
Database is offline or the database is empty or database file size is zero.
Turn on the base.
SQL Server Management Studio - right click database --> Tasks--> Bring Online.
Database is offline or the database is empty or database file size is zero.
Turn on the base.
SQL Server Management Studio - right click database --> Tasks--> Bring Online.