Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0CE069F9312 for ; Tue, 3 Oct 2006 04:40:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77767-06 for ; Tue, 3 Oct 2006 04:40:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.linux-boards.com (mail.linux-boards.com [62.90.235.247]) by postgresql.org (Postfix) with ESMTP id 41ECE9FB298 for ; Tue, 3 Oct 2006 04:40:12 -0300 (ADT) Received: from sim (sim [10.1.1.27]) by mail.linux-boards.com (8.12.5/8.12.8) with ESMTP id k937TB00001162 for ; Tue, 3 Oct 2006 09:29:16 +0200 Date: Tue, 3 Oct 2006 10:36:35 +0200 From: Sim Zacks X-Mailer: The Bat! (v1.62r) Business Reply-To: Sim Zacks Organization: CompuLab X-Priority: 3 (Normal) Message-ID: <1515679361.20061003103635@compulab.co.il> To: pgsql-odbc@postgresql.org Subject: Re: ADO, set returning functions, ms acccess In-Reply-To: <4521CA5D.5020709@gmx.net> References: <4521CA5D.5020709@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/3 X-Sequence-Number: 8266 Aside from recordcount not working, your function wouldn't work from the sql editor either because you don't have a final return statement. Also, does Execute return a recordset or do you need to call an Open function? Sim ________________________________________________________________________________ brian stapel schrieb: > > When I try to incorporate this function into my ado application, it > doesn't seem to return a recordset. > [...] > > rs record count is -1. I write without any testing or even looking at your stuff. At least the 8.1.xx ODBC driver didn't support the recordcount of returned recordsets. It showed -1 regardless how many records were produced. Try to read the recordset anyway and catch EOF to prevent a runtime-error. ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org