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 C7432D1B508 for ; Mon, 20 Oct 2003 22:30:58 +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 17008-03 for ; Mon, 20 Oct 2003 19:30:30 -0300 (ADT) Received: from vmmr7.verisignmail.com (omrnat2.verisignmail.com [216.168.230.153]) by svr1.postgresql.org (Postfix) with ESMTP id D16D8D1B538 for ; Mon, 20 Oct 2003 19:30:10 -0300 (ADT) Received: from ms8.verisignmail.com (ms8.verisignmail.com [216.168.230.180] (may be forged)) by vmmr7.verisignmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id PCL08423; Mon, 20 Oct 2003 18:28:45 -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 AFZ56201; Mon, 20 Oct 2003 18:28:42 -0400 (EDT) From: "Tim LoGrasso" To: Subject: New to ODBC with postgresql Date: Mon, 20 Oct 2003 15:28:07 -0700 Message-ID: <000701c39759$70722c40$542ca340@tlograsso> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0008_01C3971E.C4135440" 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 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/63 X-Sequence-Number: 3376 This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C3971E.C4135440 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0009_01C3971E.C4135440" ------=_NextPart_001_0009_01C3971E.C4135440 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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_001_0009_01C3971E.C4135440 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 Wo= rd 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 ch= ose “+Connect to new data source”

Next I choose ODBC DSN and choose the data source I̵= 7;d earlier created.

Then I enter user name and password 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 instead of choosing “= Connect to new data source” I click the “New Source…” butto= n.

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 passw= ord info.

I then get the following error: “Operation cannot = be executed because an error occurred during connection to the driver.”<= o:p>

 

 

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<= /span> server to allow host connections from all IP’s on my subnet.  I’ve also set tcpip_socket=3Dtrue 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_001_0009_01C3971E.C4135440-- ------=_NextPart_000_0008_01C3971E.C4135440 Content-Type: application/octet-stream; name="SQL.LOG" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="SQL.LOG" WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034812A0 UWORD 1 WCHAR * 0x03482290 [ 18] "MS Access" SWORD 33=20 SWORD * 0x0012EB6C (18) WCHAR * 0x034813A0 [ 31] "Microsoft Acces" SWORD 213=20 SWORD * 0x0012EB6E (31) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034812A0 UWORD 1 WCHAR * 0x03482290 [ 11] "Excel" SWORD 33=20 SWORD * 0x0012EB6C (11) WCHAR * 0x034813A0 [ 30] "Microsoft Excel" SWORD 213=20 SWORD * 0x0012EB6E (30) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034812A0 UWORD 1 WCHAR * 0x03482290 [ 11] "dBASE" SWORD 33=20 SWORD * 0x0012EB6C (11) WCHAR * 0x034813A0 [ 30] "Microsoft dBase" SWORD 213=20 SWORD * 0x0012EB6E (30) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034812A0 UWORD 1 WCHAR * 0x03482290 [ 10] "Postg" SWORD 33=20 SWORD * 0x0012EB6C (10) WCHAR * 0x034813A0 [ 10] "Postg" SWORD 213=20 SWORD * 0x0012EB6E (10) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034812A0 UWORD 1 WCHAR * 0x03482290 [ 8] "Post" SWORD 33=20 SWORD * 0x0012EB6C (8) WCHAR * 0x034813A0 [ 10] "Postg" SWORD 213=20 SWORD * 0x0012EB6E (10) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 EXIT SQLDataSourcesW with return code 100 (SQL_NO= _DATA_FOUND) HENV 034812A0 UWORD 1 WCHAR * 0x03482290=20 SWORD 33=20 SWORD * 0x0012EB6C WCHAR * 0x034813A0=20 SWORD 213=20 SWORD * 0x0012EB6E WINWORD bac-964 ENTER SQLAllocHandleStd=20 SQLSMALLINT 1=20 SQLHANDLE 00000000 SQLHANDLE * 00127D7C WINWORD bac-964 EXIT SQLAllocHandleStd with return code 0 (SQL_SU= CCESS) SQLSMALLINT 1=20 SQLHANDLE 00000000 SQLHANDLE * 0x00127D7C ( 0x034822e8) WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C [ 18] "MS Access" SWORD 256=20 SWORD * 0x00127D7A (18) WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C [ 11] "Excel" SWORD 256=20 SWORD * 0x00127D7A (11) WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C [ 11] "dBASE" SWORD 256=20 SWORD * 0x00127D7A (11) WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C [ 10] "Postg" SWORD 256=20 SWORD * 0x00127D7A (10) WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 0 (SQL_SUCC= ESS) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C [ 8] "Post" SWORD 256=20 SWORD * 0x00127D7A (8) WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLDataSourcesW=20 HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 EXIT SQLDataSourcesW with return code 100 (SQL_NO= _DATA_FOUND) HENV 034822E8 UWORD 1 WCHAR * 0x00127B6C=20 SWORD 256=20 SWORD * 0x00127D7A WCHAR * 0x0012796C=20 SWORD 256=20 SWORD * 0x00000000 WINWORD bac-964 ENTER SQLFreeHandle=20 SQLSMALLINT 1 SQLHANDLE 034822E8 WINWORD bac-964 EXIT SQLFreeHandle with return code 0 (SQL_SUCCES= S) SQLSMALLINT 1 SQLHANDLE 034822E8 WINWORD bac-964 ENTER SQLAllocConnect=20 HENV 03481670 HDBC * 001256F0 WINWORD bac-964 EXIT SQLAllocConnect with return code 0 (SQL_SUCC= ESS) HENV 03481670 HDBC * 0x001256F0 ( 0x034823c8) WINWORD bac-964 ENTER SQLDriverConnectW=20 HDBC 034823C8 HWND 000B082E WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 3 WINWORD bac-964 EXIT SQLDriverConnectW with return code -1 (SQL_E= RROR) HDBC 034823C8 HWND 000B082E WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 3 DIAG [S1000] blank (110)=20 WINWORD bac-964 ENTER SQLGetDiagRecW=20 SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 1=20 SQLWCHAR * 0x00125638 (NYI)=20 SQLINTEGER * 0x0012565C SQLWCHAR * 0x00125238 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x00125660 WINWORD bac-964 EXIT SQLGetDiagRecW with return code 0 (SQL_SUCCE= SS) SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 1=20 SQLWCHAR * 0x00125638 (NYI)=20 SQLINTEGER * 0x0012565C (110) SQLWCHAR * 0x00125238 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x00125660 (5) WINWORD bac-964 ENTER SQLGetDiagRecW=20 SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 2=20 SQLWCHAR * 0x00125638 (NYI)=20 SQLINTEGER * 0x0012565C SQLWCHAR * 0x00125238 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x00125660 WINWORD bac-964 EXIT SQLGetDiagRecW with return code 100 (SQL_NO_= DATA_FOUND) SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 2=20 SQLWCHAR * 0x00125638 (NYI)=20 SQLINTEGER * 0x0012565C SQLWCHAR * 0x00125238 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x00125660 WINWORD bac-964 ENTER SQLFreeConnect=20 HDBC 034823C8 WINWORD bac-964 EXIT SQLFreeConnect with return code 0 (SQL_SUCCE= SS) HDBC 034823C8 WINWORD bac-964 ENTER SQLAllocConnect=20 HENV 03481670 HDBC * 00122558 WINWORD bac-964 EXIT SQLAllocConnect with return code 0 (SQL_SUCC= ESS) HENV 03481670 HDBC * 0x00122558 ( 0x034823c8) WINWORD bac-964 ENTER SQLDriverConnectW=20 HDBC 034823C8 HWND 0008083C WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 3 WINWORD bac-964 EXIT SQLDriverConnectW with return code -1 (SQL_E= RROR) HDBC 034823C8 HWND 0008083C WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 3 DIAG [S1000] blank (110)=20 WINWORD bac-964 ENTER SQLGetDiagRecW=20 SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 1=20 SQLWCHAR * 0x001224A0 (NYI)=20 SQLINTEGER * 0x001224C4 SQLWCHAR * 0x001220A0 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x001224C8 WINWORD bac-964 EXIT SQLGetDiagRecW with return code 0 (SQL_SUCCE= SS) SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 1=20 SQLWCHAR * 0x001224A0 (NYI)=20 SQLINTEGER * 0x001224C4 (110) SQLWCHAR * 0x001220A0 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x001224C8 (5) WINWORD bac-964 ENTER SQLGetDiagRecW=20 SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 2=20 SQLWCHAR * 0x001224A0 (NYI)=20 SQLINTEGER * 0x001224C4 SQLWCHAR * 0x001220A0 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x001224C8 WINWORD bac-964 EXIT SQLGetDiagRecW with return code 100 (SQL_NO_= DATA_FOUND) SQLSMALLINT 2=20 SQLHANDLE 034823C8 SQLSMALLINT 2=20 SQLWCHAR * 0x001224A0 (NYI)=20 SQLINTEGER * 0x001224C4 SQLWCHAR * 0x001220A0 (NYI)=20 SQLSMALLINT 512=20 SQLSMALLINT * 0x001224C8 WINWORD bac-964 ENTER SQLFreeConnect=20 HDBC 034823C8 WINWORD bac-964 EXIT SQLFreeConnect with return code 0 (SQL_SUCCE= SS) HDBC 034823C8 WINWORD bac-964 ENTER SQLAllocEnv=20 HENV * 00124F2C WINWORD bac-964 EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS) HENV * 0x00124F2C ( 0x034822e8) WINWORD bac-964 ENTER SQLAllocConnect=20 HENV 034822E8 HDBC * 00124F34 WINWORD bac-964 EXIT SQLAllocConnect with return code 0 (SQL_SUCC= ESS) HENV 034822E8 HDBC * 0x00124F34 ( 0x034823c8) WINWORD bac-964 ENTER SQLDriverConnectW=20 HDBC 034823C8 HWND 00040840 WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 2 WINWORD bac-964 EXIT SQLDriverConnectW with return code -1 (SQL_E= RROR) HDBC 034823C8 HWND 00040840 WCHAR * 0x03149EF0 [ -3] "******\ 0" SWORD -3=20 WCHAR * 0x03149EF0=20 SWORD 8=20 SWORD * 0x00000000 UWORD 2 DIAG [S1000] blank (110)=20 WINWORD bac-964 ENTER SQLFreeConnect=20 HDBC 034823C8 WINWORD bac-964 EXIT SQLFreeConnect with return code 0 (SQL_SUCCE= SS) HDBC 034823C8 WINWORD bac-964 ENTER SQLFreeEnv=20 HENV 034822E8 WINWORD bac-964 EXIT SQLFreeEnv with return code 0 (SQL_SUCCESS) HENV 034822E8 ------=_NextPart_000_0008_01C3971E.C4135440--