Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Stop SQL Server Using An ASP Page? 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


I was wondering if there is a way to start and stop SQL server using an ASP page. If its possible, how would I go about doing it?
Thanks,
Kash
 


Jk145,

Use Windows Management Instrumentation (WMI) to stop the
service. You may need to have privileges set though.


Set objSvc = GetObject("WinNT://" & server & "/mssqlserver")
objService.Stop

Cheers,
fengshui1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top