Hi !!!
I am connecting to SQL SERVER with following code :-
Set SQLInstance = New SQLDMO.SQLServer
' Log in
SQLInstance.LoginSecure = True
SQLInstance.Connect "serverName","userid","pwd"
This code works proprerly if the server is already on,but if server is off I get error
Can anyone suggest any method to detect whether Server is on or off.
Thanx
SP