If your code is running from the Server you can use the Process class to
verify that it's running. However, you may want to wrap the Connection.Open
in a Try/Catch block b/c this will fail if the service isn't running and
opening connections is a 'risky' operation.
HTH,
Bill
"Steven Blair" <st**********@btinternet.com> wrote in message
news:bt**********@hercules.btinternet.com...
Hi,
Is it posssible to check if the SQL service is running. I have some code
accessing a SQL Database, but I get a nasty message if I forget to start
SQL Service.
--
Steven
www.stevenblair.com