X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 576519DC9AF for ; Tue, 3 Jan 2006 15:41:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62448-10 for ; Tue, 3 Jan 2006 15:41:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from imf16aec.mail.bellsouth.net (imf16aec.mail.bellsouth.net [205.152.59.64]) by postgresql.org (Postfix) with ESMTP id DBE369DC991 for ; Tue, 3 Jan 2006 15:41:10 -0400 (AST) Received: from ibm56aec.bellsouth.net ([70.146.186.48]) by imf16aec.mail.bellsouth.net with ESMTP id <20060103194105.ZQTV6446.imf16aec.mail.bellsouth.net@ibm56aec.bellsouth.net> for ; Tue, 3 Jan 2006 14:41:05 -0500 Received: from [192.168.1.46] (really [70.146.186.48]) by ibm56aec.bellsouth.net with ESMTP id <20060103194104.GGYW1137.ibm56aec.bellsouth.net@[192.168.1.46]> for ; Tue, 3 Jan 2006 14:41:04 -0500 Message-ID: <43BAD33D.1000302@gmail.com> Date: Tue, 03 Jan 2006 13:40:45 -0600 From: Adam Biser User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Parameters.Refresh error. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/16 X-Sequence-Number: 6831 I am trying to get a VB6 program to work on a PostgreSQL ANSI DSN. This program runs fine using an AS/400 DSN and uses prepared, parameterized SQL statements via an ADODB.Command object for Inserts and Updates. An example statement is "Insert into CHAPTER (CHAPTERID, CHAPTERDESC) values (?,?)". My ConnectionString for my PostgreSQL DSN is simply "DSN=DSN Name" and I connect successfuly. However, when I use .Parameters.Refresh I get the following error: "Provider cannot derive parameter information and SetParameterInfo has not been called." When I try "Provider=PostgreSQL.1;Data Source=localhost;Location=DB Name;", I can also connect, but .Parameters.Count simply returns 0 instead of the appropriate amount. If I use a non-parameterized SQL statement, everything works great, but this is not the desired approach. Has anyone experienced something like this? Am I posting in the right place? I'm running PostgreSQL 8.1.1 as a service on Windows XP Pro SP2. Thanks, Adam