Skip site navigation (1) Skip section navigation (2)

Re: Simple DB presence verifier.

From: "Darkangel Simpson" <darkangel_x66(at)hotmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Simple DB presence verifier.
Date: 2007-03-05 17:23:21
Message-ID: BAY115-F350672C54CD5532AFECF5D95840@phx.gbl (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
why dont you use class for connections and have something like this

bool isConnected {
   if(Conneccion.State == System.Data.ConnectionState.Open){
	return true;
     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"


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

In response to

pgsql-novice by date

Next:From: Damian CDate: 2007-03-05 19:59:00
Subject: Re: Simple DB presence verifier.
Previous:From: AbbasDate: 2007-03-05 17:14:40
Subject: Re: Simple DB presence verifier.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group