Just open the connection, get your query results then close the connection, every time you query, do not keep the connection to database opened while you application run. Just -- Zaher Dirkey