X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 80572D1B51A for ; Tue, 21 Oct 2003 21:10:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 52795-02 for ; Tue, 21 Oct 2003 18:10:03 -0300 (ADT) Received: from vmmr6.verisignmail.com (omrnat1.verisignmail.com [216.168.230.169]) by svr1.postgresql.org (Postfix) with ESMTP id ED7D7D1B4E3 for ; Tue, 21 Oct 2003 18:09:43 -0300 (ADT) Received: from ms8.verisignmail.com (ms8.verisignmail.com [216.168.230.180] (may be forged)) by vmmr6.verisignmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id QFU47060; Tue, 21 Oct 2003 16:24:39 -0400 (EDT) Received: from tlograsso (adsl-64-163-44-84.dsl.lsan03.pacbell.net [64.163.44.84]) by ms8.verisignmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AGC10823; Tue, 21 Oct 2003 16:24:37 -0400 (EDT) From: "Tim LoGrasso" To: Subject: Re: New to ODBC with postgresql Date: Tue, 21 Oct 2003 13:24:05 -0700 Message-ID: <000001c39811$46eae110$542ca340@tlograsso> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C397D6.9A8C0910" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <000701c39759$70722c40$542ca340@tlograsso> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/65 X-Sequence-Number: 3378 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C397D6.9A8C0910 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Some additional debug actions by me: I checked the mirror and realized I may not have the latest version of the ODBC driver. So, I downloaded from the msi directory the following file: psqlodbc-07_03_0100.zip I then uninstalled the existing driver and installed the 07_03_0100.zip driver. I now get the following error in MS Word: "Unable to obtain list of tables from the datasource." I tried to connect via MS Access using the same DSN and I get the following error: "ODBC-call failed. ERROR: current transaction is aborted, queries ignored until end of transaction block (#7)" This implies there is an error in the request for a list of tables. I then changed the driver configuration to return system tables. I got a list of tables. In testing this further, I created a new DB and tried the same thing and got the #7 error. I know when I mistype a command at the psql prompt I cannot perform any further commands until I do a rollback. This seems very similar which begs the question, how do I either perform that rollback or prevent this error from being generated in the first place. Any ideas would be appreciated. --Tim -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Tim LoGrasso Sent: Monday, October 20, 2003 3:28 PM To: pgsql-odbc@postgresql.org Subject: [ODBC] New to ODBC with postgresql Hello, I think I must be missing something fundamental but for the life of me I'm not able to figure it out. Hopefully someone here will be kind enough to point me in the right direction. Essentially I am trying to setup a mail merge between Microsoft Word and a postgresql database. I'm on Windows XP with MS Word 2002. I have setup a DSN for the database I'm trying to connect to with the following info: DATABASE: production, SERVER: ip address, PORT: 5432. Then I go into MS Word and choose Tools->Letters and Mailings->Mail Merge Wizard. I then chose Browse for a database. I'm then prompted to choose a data source and I chose "+Connect to new data source" Next I choose ODBC DSN and choose the data source I'd earlier created. Then I enter user name and password and choose test. I get the following error: "Test connection failed because of an error in initializing provider. blank The other variation I try is instead of choosing "Connect to new data source" I click the "New Source." button. It then starts with connect string instead of data source name chosen. I click build next to the connect string field and fill in the database, server ip address, port and password info. I then get the following error: "Operation cannot be executed because an error occurred during connection to the driver." I figured out how to trace the ODBC drivers and I've attached the SQL.LOG file. I just downloaded the window's driver from the postgres site on Friday so I should have the most recent versions. I've configured the postgres server to allow host connections from all IP's on my subnet. I've also set tcpip_socket=true in postgresql.conf. This is all the info I can think of attaching at the moment. Please let me know if you need anything else to make this work. Thanks for your time. Sincerely, Tim LoGrasso ------=_NextPart_000_0001_01C397D6.9A8C0910 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Some additional debug actions by me:

 

I checked the mirror and realized I may not have the latest version of the ODBC driver.  So, I downloaded from the msi directory the following file: psqlodbc-07_03_0100= .zip

 

I then uninstalled the existing driver= and installed the 07_03_0100.zip driver.

 

I now get the following error in MS Wo= rd: “Un= able to obtain list of tables from the datasource.̶= 1;

 

I tried to connect via MS Access using the same DSN and I get the following error:

 “ODBC—call failed.=

 

        =             &nb= sp;     ERROR: current transaction is aborted, queries ignored until end of transaction block (#7)”

 

This implies there is an error in the request for a list= of tables.  I then changed the driver configur= ation to return system tables.  I go= t a list of tables.  In testing th= is further, I created a new DB and tried the same thing and got the #7 error.<= span style=3D'mso-spacerun:yes'>  I know when I mistype a command at= the psql prompt I cannot perform any further commands unt= il I do a rollback.  This seems very similar which begs the question, how do I either perform that rollback or prevent this error from being generated in the first place.  Any ideas would be appreciated.

 

--Tim

 

 

 

 

 

 

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Tim LoGrasso
Sent:
Monday, October 20, 2003= 3:28 PM
To: pgsql-odbc@postgresql.or= g
Subject: [ODBC] New to ODBC = with postgresql

 

Hello,

 

I think I must be missing some= thing fundamental but for the life of me I’m not able to figure it out.  Hopefully someone here will be kind enough to point me in the right direction.=   Essentially I am trying to setup a mail merge between Microsoft Word= and a postgresql database.  I̵= 7;m on Windows XP with MS Word 2002.

 

I have setup a DSN for the dat= abase I’m trying to connect to with the following info: DATABASE: productio= n, SERVER: ip address, PORT: 5432. 

Then I go into MS Word and cho= ose Tools->Letters and Mailings->Mail Merge Wizard.

I then chose Browse for a data= base.

I’m then prompted to cho= ose a data source and I chose “+Connect to new data source”

Next I choose ODBC DSN and cho= ose the data source I’d earlier created.

Then I enter user name and pas= sword and choose test.

I get the following error:  “Test connection failed beca= use of an error in initializing provider. blank

 

The other variation I try is i= nstead of choosing “Connect to new data source” I click the “New Source…” button.

It then starts with connect st= ring instead of data source name chosen. 

I click build next to the conn= ect string field and fill in the database, server ip address, port and password info.

I then get the following error: “Operation cannot be executed because an error occurred during connec= tion to the driver.”

 

 

I figured out how to trace the= ODBC drivers and I’ve attached the SQL.LOG file.  I just downloaded the window’= ;s driver from the postgres site on Friday so I should have the most recent versions.

 

I’ve configured the post= gres server to allow host connections from all IP’s on my subnet.  I’ve also set tcpip_socket= =3Dtrue in postgresql.conf.  <= /span>

 

This is all the info I can thi= nk of attaching at the moment.  Plea= se let me know if you need anything else to make this work.

 

Thanks for your time.

 

Sincerely,

 

Tim LoGrasso=

------=_NextPart_000_0001_01C397D6.9A8C0910--