Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005

    Unanswered: Starting & Stopping SQL Server from command line

    Hello All...
    I am new to this forum (and new to SQL for that matter), so I hope this isn't a stupid question. I tried searching for the answer but couldn't find it here.
    I am trying to start & stop SQL server through the command line so I can start & stop it as a scheduled task. Are there any switches for sqlmangr.exe I can use? Maybe another way?

    Thanks....Dave S. <>

  2. #2
    Join Date
    Jun 2003

    Thumbs up

    to start sql server & sql server agent from command line
    net start mssqlserver

    net start sqlserveragent

    to stop
    net stop mssqlserver
    net stop sqlserveragent
    I love cursor,though I never use it.Cos' I dont want to misuse it.


  3. #3
    Join Date
    Nov 2005

    Thanks for the info!

    Thanks...I'll give it a try...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts