Re: Simple DB presence verifier.

Поиск
Список
Период
Сортировка
От Darkangel Simpson
Тема Re: Simple DB presence verifier.
Дата
Msg-id BAY115-F350672C54CD5532AFECF5D95840@phx.gbl
обсуждение исходный текст
Ответ на Re: Simple DB presence verifier.  ("Abbas" <abbas@enterprisedb.com>)
Список pgsql-novice
why dont you use class for connections and have something like this

bool isConnected {
try{
   if(Conneccion.State == System.Data.ConnectionState.Open){
    return true;
   }
  else{
     return false;
   }
  }
catch {
    MessageBox.Show("Error en IsConnected class_Coneccion");
    return false;
         }
}
after you conect this is a way to know if its connected or no with the npsql
driver, maybe the driver for java has something like "connection state"

Darkangel.

_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a month.
Intro*Terms

https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f6&disc=y&vers=743&s=4056&p=5117


В списке pgsql-novice по дате отправления:

Предыдущее
От: "Abbas"
Дата:
Сообщение: Re: Simple DB presence verifier.
Следующее
От: "Damian C"
Дата:
Сообщение: Re: Simple DB presence verifier.