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 CF14452808 for ; Fri, 15 Jul 2005 10:37:15 -0300 (ADT) 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 44854-10 for ; Fri, 15 Jul 2005 13:37:05 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 1587952B0D for ; Fri, 15 Jul 2005 10:37:01 -0300 (ADT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Fri, 15 Jul 2005 09:36:24 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Fri, 15 Jul 2005 09:37:03 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IJO8HR00.335 for ; Fri, 15 Jul 2005 09:37:03 -0400 Received: from [10.43.15.207] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Fri, 15 Jul 2005 09:37:02 -0400 Message-Id: <42D7BBFA.9060107@us.michelin.com> Date: Fri, 15 Jul 2005 09:36:58 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Minal Cc: pgsql-odbc@postgresql.org Subject: Re: Has anyone accessed postgresql in linux from VB code References: <42D75535.6010403@yes2etl.com> In-Reply-To: <42D75535.6010403@yes2etl.com> Content-Type: multipart/mixed; boundary="------------010004040000080606090505" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/71 X-Sequence-Number: 5537 This is a multi-part message in MIME format. --------------010004040000080606090505 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Yeah, I think one or two people may have connected to PostgreSQL with VB/VBA code. Go to the Postgresql ODBC site http://gborg.postgresql.org/project/psqlodbc/projdisplay.php Follow the FAQ links to a summary on using VB with postgresql. You seem to have a connection string formation issue. Have you tried the UDL trick. Go to the archives of this discussion forum. Search for UDL, return data by relevence for better results than by date. Or jsut google on how to use a microsoft UDL file. The UDL trick will get you a complete connection string, but you don't need most of the parameters. You mostly need to specify the server, the database, the user and password, Optionally you can inlcude important items like row versioning, long varchar return as, and booleans return as. Minal wrote: > Has anyone accessed postgresql in linux from VB code??? > I have added the following code.. > > Dim MyDB As New ADODB.Connection > Dim Rc As New ADODB.Recordset > Private Sub Command1_Click() > > > MyDB.Provider = "PostgreSQL" > > MyDB.CursorLocation = adUseClient > 'MyDB.Open "Data > Source=10.1.2.86;Location=trainneedcorp;'db_admin','admin'" > MyDB.Open "DRIVER={postgresql};DATABASE=trainneedcorp;Data > Source=10.1.2.86;PORT=5432;UID=db_admin;PWD=admin;" > End Sub > > I am getting the error > "No postgresql username specified in startup package" > > Minal > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match --------------010004040000080606090505 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------010004040000080606090505--