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 May SQL Server Interview: How to manage Services or Instances from Command Prompt?

SQL Server Interview: How to manage Services or Instances from Command Prompt?

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

If you are preparing for SQL Server DBA interview, you should also read this article.
In this interview question, I am sharing different options to manage SQL Server services or instances using Command Prompt or Command line.

NET Commands:

  • NET START MSSQLSERVER: Starts SQL Server
  • NET STOP MSSQLSERVER: Stops SQL Server
  • NET PAUSE MSSQLSERVER: Pauses SQL Server
  • NET CONTINUE MSSQLSERVER: Resumes SQL Server
  • NET START MSSQL$instancename: Starts SQL Server as a service with specific instancename
  • NET STOP MSSQL$instancename: Stops SQL Server as a service with specific instancename
  • NET PAUSE MSSQL$instancename: Pauses SQL Server as a service with specific instancename
  • NET CONTINUE MSSQL$instancename: Resumes SQL Server as a service with specific instancename

To start the default instance of SQL Server from a command prompt:

1
sqlservr.exe

To start a named instance of SQL Server from a command prompt:

1
sqlservr.exe -s

To start the default instance of SQL Server in single-user mode from a command prompt:

1
sqlservr.exe -m

To start a named instance of SQL Server in single-user mode from a command prompt:

1
sqlservr.exe -m -s

To start the default instance of SQL Server with minimal configuration:

1
sqlservr.exe -f

To start a named instance of SQL Server with minimal configuration:

1
sqlservr.exe -f -s

These are the list of important commands that you can prepare, but I would suggest preparing two main options for these kind questions like “how to start SQL Server in single user mode”, “how to start SQL Server with minimal configuration.”

May 21, 2017Anvesh Patel
PostgreSQL: Compare two String Similarity in percentage (pg_trgm module)SQL Server: Script to find Open Transaction to avoid Deadlock

Leave a Reply Cancel reply

CAPTCHA
Refresh

*

Anvesh Patel
Anvesh Patel

Database Engineer

May 21, 2017 SQL Server, SQL Server InterviewAnvesh Patel, database, database research and development, dbrnd, SQL Instances, 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, 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....