X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CBAEA32A283 for ; Tue, 5 Oct 2004 00:29:25 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98410-05 for ; Mon, 4 Oct 2004 23:29:19 +0000 (GMT) Received: from ecintweb.eldocomp.com (ecintweb.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id D0452329FA3 for ; Tue, 5 Oct 2004 00:29:20 +0100 (BST) Received: by ecintweb.eldocomp.com with XWall v3.29f ; Mon, 4 Oct 2004 16:29:18 -0700 From: Andrew Ayers To: PostgreSQL ODBC List Subject: Re: Executing SP in VB6 Date: Mon, 4 Oct 2004 16:29:18 -0700 X-Assembled-By: XWall v3.29f Message-ID: <4161DCCE.6070502@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=EXCUSE_16, LINES_OF_YELLING X-Spam-Level: X-Archive-Number: 200410/39 X-Sequence-Number: 4514 Sandro Yaqub Yusuf wrote: > Hello my friend, >=20 > I know. > I have worked with VB about 6 years. I=B4m using ACCESS, ORACLE,=20 > SQL_SERVER, XBASE integrated with Visual Basic. > Now, for my experience, I would like to use PostGresQL with VB6. OK ??!! Yes, it is possible to use PostgreSQL with VB6, via ODBC (I have posted=20 numerous times in the past on this - see the archives if you are=20 interested, I am not going to repeat myself here) - I am doing it as we=20 speak. But I don't think this is what you are asking. If I am understanding you correctly, you are wanting to code stored=20 procedures in VB and load them into your PostgreSQL DB, correct? As far=20 as I know, this is *not* possible. You can, however, write SP's using=20 PL/PgSQL, which is similar to PL on Oracle, from what I understand. Once you have your SP written, there should be a way to call/use it via=20 ODBC. I have never done this, but I did find this post, which may give=20 you some help: http://archives.postgresql.org/pgsql-novice/2004-04/msg00050.php Andrew Ayers > ----- Original Message ----- From: "Rick Sivernell" > To: "Sandro Yaqub Yusuf" > Sent: Monday, October 04, 2004 1:07 PM > Subject: Re: [ODBC] Executing SP in VB6 >=20 >=20 >> On Mon, 4 Oct 2004 16:24:33 -0300 >> "Sandro Yaqub Yusuf" wrote: >> >>> Hello my friend, >>> >>> That is simple. I work developing programs in Visual Basic using=20 >>> complex Stored >>> Procedures in SQL-SERVER 7/2000. I want to make STORED PROCEDURES in=20 >>> PostGresQL >>> using Visual Basic 6. I need one example to begin. >>> >>> Thanks, >>> >>> Sandroyy >>> ----- Original Message ----- From: Goulet, Dick >>> To: Sandro Yaqub Yusuf ; pgsql-odbc@postgresql.org >>> Sent: Monday, October 04, 2004 4:15 PM >>> Subject: RE: [ODBC] Executing SP in VB6 >>> >>> >>> May I ask why you want to use a stored procedure? A simple "Select= =20 >>> fullname from >>> users where user =3D '';" should work just fine. >>> >>> Dick Goulet >>> Senior Oracle DBA >>> Oracle Certified 8i DBA >>> >>> >>> >>> >>> >>> -----------------------------------------------------------------------= -------=20 >>> >>> From: Sandro Yaqub Yusuf [mailto:sandro@proservvi.com.br] >>> Sent: Monday, October 04, 2004 3:13 PM >>> To: pgsql-odbc@postgresql.org >>> Subject: [ODBC] Executing SP in VB6 >>> >>> >>> Hello, >>> >>> Please, I just trying search in all WEB SITES about using STORED=20 >>> PROCEDURES with >>> VISUAL BASIC, but I not found anything about this that can help me. >>> >>> I have a table: USERS with colums IDUSER, USER, PASSWORD, FULLNAME >>> I need get the colum FULLNAME with parameter USER. >>> How I do to create and execute a STORED PROCEDURE in VISUAL BASIC 6= =20 >>> to resolve >>> this litle problem ? (please, forgiven my english because I live in= =20 >>> BRAZIL and >>> not speak english). >>> >>> Thanks, >>> >>> Sandroyy >>> >>> >> Sandro >> >> You do not need to use stored procedure, VB has database objects for= =20 >> you to use. >> Personally I would use C++ and OLE DB. It is much better, faster and=20 >> if you are >> working across OSes, you still connect to db using odbc. From your=20 >> description your >> are on M$. ODBC or OLE DB do not care what the database is, as long as= =20 >> there is a ODBC >> driver. There are plenty of examples in books and on the net. >> >> cheers >> >> --=20 >> Rick Sivernell >> Dallas, Texas 75287 >> 972 306-2296 >> res005ru@verizon.net >> Gentoo Linux >> Registered Linux User #193859 >> >> .~. >> / v \ >> /( _ )\ >> ^ ^ >> In Linux we trust!=20 >=20 >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? >=20 > http://www.postgresql.org/docs/faqs/FAQ.html >=20 >=20 >=20 -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.