public string GetTestDB() { string Result = ""; MainViewModel.Current.Prologue(Request); try { if (!string.IsNullOrEmpty(MainViewModel.Current.Connection.LastError)) { return(MainViewModel.Current.Connection.LastError); } ; } catch (Exception ex) { return("(1) " + ex.Message); }; if (MainViewModel.Current.Connection.DbConnection.State != System.Data.ConnectionState.Open) { MainViewModel.Current.Connection.CheckConnection(); } ; Result = DB_SQL.QuickQuery("SELECT @@VERSION ;"); if (!string.IsNullOrEmpty(MainViewModel.Current.Connection.LastError)) { return(MainViewModel.Current.Connection.LastError); } ; return(Result); }