I am using the following line to create a serviceControllerSQL type.
I then check to see if the service is running and if so close it down.Code:ServiceController serviceControllerSQL = new ServiceController("MSSQLSERVER");
My question is :
What happens if SQLExpress 2005 and SQLServer 2000 are running on the same machine. How can I just choose the Express service to stop ?
When I look at the services running on my machine I can only find MSSQLSERVER.





Reply With Quote