Click here to Skip to main content
12,509,640 members (43,299 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# SQL-Server TSQL
how to stop and start sql server instance using command line?
i`v trid following samples:
net stop MSSQLSERVER
and
net stop "SQL Server Agent (MSSQLSERVER)"
but after hitting this the cmd windows comes for a second and dissapears and the nothing happens to sql server named instance...


thanks...
Posted 22-Feb-13 3:13am
Updated 22-Feb-13 5:21am
v2
Comments
Arun1_m1 22-Feb-13 9:29am
   
Are you trying to stop a named instance of SQL Server ?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi Sakura

Go to Command prompt
Run -> type cmd to to command prompt

To Start SQL Server
net start mssqlserver

To Stop SQL Server
net stop mssqlserver

Regards
Willington
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi Sakura

Go to Command prompt
Run -> type cmd to to command prompt

To Start SQL Server
net start mssqlserver

To Stop SQL Server
net stop mssqlserver

Regards
Willington
  Permalink  
Comments
Shubh Agrahari 22-Feb-13 9:33am
   
its not good to put solution more the once .....be care full for next time...
ThePhantomUpvoter 22-Feb-13 9:35am
   
There is a bug that solutions are sometimes posted twice.
willington.d 22-Feb-13 9:40am
   
Its not my problem Shubh Agrahari. Please report this to Code Project.
Thanks for your kind advice.
Shubh Agrahari 22-Feb-13 9:43am
   
ya ok but there also a delete link that helps you to remove solution from your end ..
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Hi professional...

there is such a many commands for driving sql server throw command prompt ...

DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160929.1 | Last Updated 23 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100