Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EB5E6475AD4 for ; Tue, 10 Sep 2002 09:31:43 -0400 (EDT) Received: from snoopy.mohawksoft.com (h0050bf7a618d.ne.client2.attbi.com [24.147.138.78]) by postgresql.org (Postfix) with ESMTP id B0B86475AE8 for ; Tue, 10 Sep 2002 09:31:33 -0400 (EDT) Received: from mohawksoft.com (localhost [127.0.0.1]) by snoopy.mohawksoft.com (8.11.6/8.11.6) with ESMTP id g8ADTxt03178; Tue, 10 Sep 2002 09:29:59 -0400 Message-ID: <3D7DF3D6.FEA5727A@mohawksoft.com> Date: Tue, 10 Sep 2002 09:29:58 -0400 From: mlw X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-SMP i686) X-Accept-Language: en MIME-Version: 1.0 To: Vikram Sulakhe Cc: pgsql-odbc@postgresql.org Subject: Re: Accessing PGSQL References: <003b01c25886$43218f50$8ea1a082@redstorm> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/24 X-Sequence-Number: 1995 Vikram Sulakhe wrote: > > Hi! > > Is there a way to execute a SQL query directly from a Win NT machine, on a > pgSQL database that is remotely installed? > > I tried using CRecordset Object to connect to this remote pgSQL database. > But if I have a very large database (say 10,000 records), then searching for > a particular record takes lot of time as we need to traverse through all the > records in CRecordset. > > I can use m_strFilter property of CRecordset, but then I have to open the > database again and this is also very time consuming process. > > So I am looking for a quick way to locate a particular record in a > collection of say 10,000 records. > > Is there a work-around for this? I'm not sure you need a work around and 10,000 records is not very large. I have a few databases with well over 10 million records, and I would consider these moderately sized. First of all, you seem to be confusing ODBC with a database class library. They are not the same.