Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2017 November SQL Server Interview: Theory – What are the different states of Database

SQL Server Interview: Theory – What are the different states of Database

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

ONLINE:

If the database is in ONLINE state, that means it is available for all end users and functioning normally. The ONLINE database state means primary filegroup is online and might be other recovery process is running in the background.

RESTORING:

If the database is in RESTORING state, that means user started restoring process of your database using something like RESTORE DATABASE. In this state, the end user cannot access the database because it is under restoration. There are two options for restoring like RECOVERY and NORECOVERY.

The option RECOVERY will bring the database back into online state once it completes the restoration. The option NORECOVERY will keep the database in RESTORING state because the user might be restoring the database from multiple files and after all restore, we can change the state.

RECOVERING:

This is a recovery state of the database where the database is performing a recovery process. When few transactions are uncommitted, and database got shut down, at next startup of the database you can find RECOVERING state of the database.
At the startup time, it is trying to recover database from uncommitted transactions.

RECOVERY PENDING:

If your database in RECOVERY PENDING state, that means database recovery process failed due to some X reason. The end user cannot access the database in RECOVERY PENDING state.

SUSPECT:

If the database is in SUSPECT mode, that means database recovery process has started but not completed successfully. If database in the SUSPECT state, the end user cannot access the database.

EMERGENCY:

Generally, this state is set by SQL Server System Admin for performing database maintenance task. In this state, the database will be in single-user mode, and login is restricted only to sysadmin account.

OFFLINE:

Only explicitly we can bring database in OFFLINE mode where the end user cannot access the database and database also stop the performing all functions. When DBAs are moving disk location or adding disk space, they are changing the database in OFFLINE mode.

Nov 1, 2017Anvesh Patel
SQL Puzzle: SQL Advance Query - Search the percentage (%) character in tableSQL Server: Must know - the Forwarded Records in HEAP Table

Leave a Reply Cancel reply

CAPTCHA
Refresh

*

Anvesh Patel
Anvesh Patel

Database Engineer

November 1, 2017 SQL Server, SQL Server InterviewAnvesh Patel, database, database research and development, dbrnd, EMERGENCY, OFFLINE, ONLINE, RECOVERING, RESTORING, SQL Query, SQL Server, SQL Server Administrator, SQL Server Error, SQL Server Monitoring, SQL Server Performance Tuning, SQL Server Programming, SQL Server Tips and Tricks, SUSPECT, TSQL
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....