示例#1
0
 /// <summary>
 /// Check if Database server is live
 /// </summary>
 /// <returns>True: if Server connection avil. False: Else</returns>
 public static bool IsServerLive()
 {
     //only here for checking database connection
        DLibraryPro.DataAccess dAccess = new DLibraryPro.DataAccess();
        try
        {
        dAccess.CheckConnection();
        return true;
        }
        catch { return false; }
 }