I need to find out if my database is running, and I have to do it in a WinForm in C#.
From the command prompt (in windows 7) I run the following command:
dbping -c "uid=sos;pwd=cdpbszqe;eng=mydatabase;dbn=mydatabase;links=tcpip" -pd file -d > result.txt
The result is written (redirected) to the result.txt file
which I open and see if it was successful
How can i do the same from in C# code using WinForms? Is it possible to ping and get a result if successful? Do I have to ping and create a text file from the ping result, then open it in my C# App? What's the best way to proceed?
thanks.