How can I start or stop a sql server in c#

Jan 7 2008 11:08 PM

I am writing a test class.  In this class, I need to stop the sql server in Setup() method, and restart the sql server in Teardown() method.  I don't know how to stop or start the sql server in c#.  anyone can help me ?  

  thx in advance~


Answers (2)