X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D71514760CC for ; Sat, 26 Apr 2003 08:07:21 -0400 (EDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by postgresql.org (Postfix) with ESMTP id 4DB89475F3D for ; Sat, 26 Apr 2003 08:07:19 -0400 (EDT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 199ORe-0000XI-00 for ; Sat, 26 Apr 2003 14:06:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 199ORb-0000Wz-00 for ; Sat, 26 Apr 2003 14:06:15 +0200 From: fabrice Subject: Re: Stored Procedures Date: Sat, 26 Apr 2003 14:07:03 +0200 Lines: 57 Message-ID: <3EAA7667.1050701@free.fr> References: <3EA9564A.2090609@free.fr> <20030425224958.58564.qmail@web20808.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.0.0) Gecko/20020530 X-Accept-Language: fr-fr, en-us, en Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-35.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/81 X-Sequence-Number: 2883 Hi and thanx :) Here is what i've done : Dim dbs As DATABASE, qdf As QueryDef Set dbs =3D CurrentDb dbs.Connect =3D "odbc;dsn=3DPostGreSQL;uid=3Dfabrice;pwd=3Dfabrice;database= =3Ddb1;" dbs.Execute "select p4();", dbSQLPassThrough And it worked. p4() is a stored procedure wich returns an integer but,=20 right now, i don't care about the result. Next step is to pick up the results from the stored procedure. f. Jeff Eckermann a =E9crit: > --- fabrice wrote: >=20 >>Hi:) >> >>I'm looking for a piece of code that could show me >>how to call a stored=20 >>procedure with parameters from Access95 (VB). >> >>It seems nothing exists in the deep www :( >> >=20 >=20 > I assume you mean, with parameters known only at > runtime... >=20 > You will need to do a passthrough query, and construct > the query on the fly. (searches through vague > memories ...) Using DAO: create a querydef, set the > "connect" property (look in the help file to get the > construction), set the "sql" property to be your > dynamically constructed query string. If you are not > returning any records (i.e. doing inserts, updates or > whatever), then set the "returnsrecords" property to > false. >=20 > I haven't done this for a while, so my memory is a > little vague, but that should give you an idea. >=20 > __________________________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo > http://search.yahoo.com >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? >=20 > http://www.postgresql.org/docs/faqs/FAQ.html >=20