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 1EAA7D1B342 for ; Sun, 23 May 2004 14:02:35 -0300 (ADT) 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 79153-02 for ; Sun, 23 May 2004 14:02:15 -0300 (ADT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by svr1.postgresql.org (Postfix) with ESMTP id 67A75D1B1C7 for ; Sun, 23 May 2004 14:02:13 -0300 (ADT) Received: from ranger (c-24-17-160-6.client.comcast.net[24.17.160.6]) by comcast.net (rwcrmhc12) with SMTP id <2004052317021201400g10qge>; Sun, 23 May 2004 17:02:13 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Adrian Klaver Reply-To: aklaver@attbi.com To: "'pgsql-odbc@postgresql.org'" Subject: Re: Unknown connect option (Get), Postgres 7.4.2 Date: Sun, 23 May 2004 10:15:09 -0700 User-Agent: KMail/1.4.3 References: <20040523155253.76373.qmail@web20813.mail.yahoo.com> In-Reply-To: <20040523155253.76373.qmail@web20813.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200405231015.09716.aklaver@comcast.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/40 X-Sequence-Number: 4064 PgAdminIII uses it own driver to connect unlike PgAdminII which uses ODBC. I would agree with Jeff that the problem is with the Postgres setup not ODB= C=20 per se. Specifically, look at the pg_hba.conf file. This is where access is= =20 granted to the database. My guess is the new version has a different/more= =20 restrictive setup than the previous version. On Sunday 23 May 2004 08:52 am, Jeff Eckermann wrote: > My experience is that ODBC driver error messages are > not always very helpful, when it comes to figuring out > the cause of the failure. > > I think it most likely that the problem is not with > ODBC or your application, but in the setup of the new > PostgreSQL version. Something in the connection or > authentication parameters has changed. > > Being able to connect with PgAdminIII, but not with > PgAdminII or MS Access, suggests to me that there is > something different about the parameters being used by > your setup for PgAdminIII. > > Make sure that the host name, database name, user name > and password parameters that you are using really do > have the values that you believe them to have, i.e. > check everything. If you find no error there, try > connecting to the database with psql, using the same > user name and password as in your app. > > If you still have a problem, post your results back to > the list. > > --- Albin Blaschka > > wrote: > > Hello, > > > > Following situation: > > > > I have updated to Postgres 7.4.2 from 7.3.2, the > > ODBC-Driver stayed the same > > We use Access (Office XP) with Windows 2000 as > > frontend to our data > > > > But now after migration to the new database and a > > new server, I get > > following > > error-messages when I want to connect via ODBC > > (Access) or even via PGAdmin > > II (but > > PGAdmin III works...): > > > > (taken from the ODBC-Log) > > CONN ERROR: func=3DPGAPI_GetConnectOption, > > desc=3D'fOption=3D30002', errnum=3D205, > > errmsg=3D'Unknown connect option (Get)' > > > > and a littler after that: > > > > CONN ERROR: func=3DPGAPI_DriverConnect, desc=3D'Error > > from CC_Connect', > > errnum=3D105, > > errmsg=3D'The database does not exist on the server or > > user authentication > > failed. > > > > This last message appears then in Access (with > > Errorcode #105) or in PGAdmin > > II. > > > > > > As said above, the connection from the same machine > > to the database in > > question > > with PGAdmin III *works with no problems*...only > > Access and PGAdmin II are > > having > > problems... > > > > The Database-Server now is a Debian "Sarge" > > (testing) - Box > > (the old one is a Debian "Woody") > > Clients are Windows 2000, Access is from Office XP > > ODBC-Driver Version is 7.03.02.00 > > > > In the archives, I have found quite similar > > questions/problems, but no > > answers... > > Some of the messages are quite outdated, maybe now > > somebody araound here > > knows > > a solution or what I might have done wrong... > > > > Please help & thanks in advance! > > Albin Blaschka > > > > > > Here is the output of the psqlodbc-log: > > CONN ERROR: func=3DPGAPI_GetConnectOption, > > desc=3D'fOption=3D30002', errnum=3D205, > > errmsg=3D'Unknown connect option (Get)' > > ------------------------------------------------------------ > > > henv=3D136060816, conn=3D136066856, > > status=3D0, num_stmts=3D16 > > sock=3D136060872, stmts=3D136060944, > > lobj_type=3D-999 > > ---------------- Socket Info > > ------------------------------- > > socket=3D-1, reverse=3D0, errornumber=3D0, > > errormsg=3D'(NULL)' > > buffer_in=3D136077856, > > buffer_out=3D136081960 > > buffer_filled_in=3D0, buffer_filled_out=3D0, > > buffer_read_in=3D0 > > conn=3D136066856, PGAPI_DriverConnect( > > in)=3D'DSN=3Dtesting7.4.2;', > > fDriverCompletion=3D1 > > DSN info: > > DSN=3D'testing7.4.2',server=3D'balappserver',port=3D'5432',dbase=3D'zuech= t',user=3D'a >l > > > bin',passwd=3D'xxxxx' > > onlyread=3D'0',protocol=3D'6.4',showoid=3D'0',fakeoidindex=3D'0',showsyst= able=3D'0' > > > conn_settings=3D'',conn_encoding=3D'OTHER' > > translation_dll=3D'',translation_option=3D'' > > Global Options: Version=3D'07.03.0200', fetch=3D100, > > socket=3D4096, > > unknown_sizes=3D0, > > max_varchar_size=3D254, > > max_longvarchar_size=3D8190 > > disable_optimizer=3D1, ksqo=3D1, > > unique_index=3D1, > > use_declarefetch=3D0 > > text_as_longvarchar=3D1, > > unknowns_as_longvarchar=3D0, > > bools_as_char=3D1 NAMEDATALEN=3D64 > > extra_systable_prefixes=3D'pg_;', > > conn_settings=3D'' > > conn_encoding=3D'OTHER' > > conn=3D136066856, query=3D' ' > > NOTICE from backend during send_query: 'LOG: > > Anweisung: > > ' > > NOTICE from backend during send_query: 'LOG: Dauer: > > 0.246 ms > > ' > > CONN ERROR: func=3DPGAPI_DriverConnect, desc=3D'Error > > from CC_Connect', > > errnum=3D105, errmsg=3D'The database does not exist on > > the server > > or user authentication failed.' > > ------------------------------------------------------------ > > > henv=3D136060816, conn=3D136066856, > > status=3D0, num_stmts=3D16 > > sock=3D136060872, stmts=3D136060944, > > lobj_type=3D-999 > > ---------------- Socket Info > > ------------------------------- > > socket=3D964, reverse=3D0, errornumber=3D0, > > errormsg=3D'(NULL)' > > buffer_in=3D136077856, > > buffer_out=3D136081960 > > buffer_filled_in=3D48, > > buffer_filled_out=3D0, buffer_read_in=3D48 > > > > And here from the mylog-file: > > > > [1244]globals.extra_systable_prefixes =3D 'dd_;' > > [1244][[SQLAllocHandle]][1244]**** in PGAPI_AllocEnv > > ** > > [1244]** exit PGAPI_AllocEnv: phenv =3D 136060816 ** > > [1244][[SQLSetEnvAttr]] att=3D200,2 > > [1244][[SQLAllocHandle]][1244]PGAPI_AllocConnect: > > entering... > > [1244]**** PGAPI_AllocConnect: henv =3D 136060816, > > conn =3D 136066856 > > [1244]EN_add_connection: self =3D 136060816, conn =3D > > 136066856 > > [1244] added at i =3D0, conn->henv =3D 136060816, > > conns[i]->henv =3D > > 136060816 > > [1244][SQLGetInfo(30)][1244]PGAPI_GetInfo: > > entering...fInfoType=3D77 > > [1244]PGAPI_GetInfo: p=3D'03.00', len=3D0, value=3D0, > > cbMax=3D12 > > [1244][[SQLSetConnectAttr]] 103 > > [1244]PGAPI_SetConnectAttr 103 > > [1244]PGAPI_SetConnectOption: entering fOption =3D 103 > > vParam =3D 20 > > [1244][[SQLGetConnectAttr]] 30002 > > [1244]PGAPI_GetConnectAttr 30002 > > [1244]PGAPI_GetConnectOption: entering... > > [1244]CONN ERROR: func=3DPGAPI_GetConnectOption, > > desc=3D'fOption=3D30002', > > errnum=3D205, errmsg=3D'Unknown connect option (Get)' > > [1244][[SQLSetConnectAttr]] 30002 > > [1244]PGAPI_SetConnectAttr 30002 > > [1244]PGAPI_SetConnectOption: entering fOption =3D > > 30002 vParam =3D 122428760 > > [1244]Microsoft Jet !!!! > > [1244][SQLDriverConnect][1244]PGAPI_DriverConnect: > > entering... > > [1244]**** PGAPI_DriverConnect: fDriverCompletion=3D1, > > connStrIn=3D'DSN=3Dtesting7.4.2;' > > [1244]our_connect_string =3D 'DSN=3Dtesting7.4.2;' > > [1244]attribute =3D 'DSN', value =3D 'testing7.4.2' > > [1244]copyAttributes: > > DSN=3D'testing7.4.2',server=3D'',dbase=3D'',user=3D'',passwd=3D'xxxxx',po= rt=3D'',onlyre >a > > d=3D'',protocol=3D'',conn_settings=3D'',disallow_premature=3D-1) > > > [1244]globals.extra_systable_prefixes =3D 'pg_;' > > [1244]our_connect_string =3D 'DSN=3Dtesting7.4.2;' > > [1244]attribute =3D 'DSN', value =3D 'testing7.4.2' > > [1244]CopyCommonAttributes: > > A7=3D100;A8=3D4096;A9=3D0;B0=3D254;B1=3D8190;B2=3D1;B3=3D1;B4=3D1;B5=3D1;= B6=3D0;B7=3D1;B8=3D0;B9=3D1; >C > > > 0=3D1;C1=3D0;C2=3Dpg_;[1244]CC_connect: entering... > > [1244]CC_connect(): DSN =3D 'testing7.4.2', server =3D > > 'balappserver', port =3D > > '5432', database =3D 'zuecht', username =3D 'albin', > > password=3D'xxxxx' > > [1244]connecting to the server socket... > > [1244]connection to the server socket succeeded. > > [1244]sizeof startup packet =3D 292 > > [1244]sent the authentication block. > > [1244]sent the authentication block successfully. > > [1244]gonna do authentication > > [1244]read 9, global_socket_buffersize=3D4096 > > [1244]auth got 'R' > > [1244]areq =3D 5 > > [1244]in AUTH_REQ_MD5 > > [1244]read 15, global_socket_buffersize=3D4096 > > [1244]auth got 'R' > > [1244]areq =3D 0 > > [1244]auth got 'K' > > [1244]auth got 'Z' > > =3D=3D=3D message truncated =3D=3D=3D > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Domains =96 Claim yours for only $14.70/year > http://smallbusiness.promotions.yahoo.com/offer > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) --=20 Adrian Klaver=09 aklaver@comcast.net