X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 13E4CD1B502 for ; Thu, 18 Sep 2003 23:38:39 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 90718-03 for ; Thu, 18 Sep 2003 20:38:10 -0300 (ADT) Received: from sd.tpf.co.jp (unknown [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 48E46D1B509 for ; Thu, 18 Sep 2003 20:38:05 -0300 (ADT) Received: (qmail 18449 invoked from network); 19 Sep 2003 08:38:06 +0900 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 19 Sep 2003 08:38:06 +0900 Received: from tpf.co.jp ([126.0.1.65]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id IAA08752; Fri, 19 Sep 2003 08:38:04 +0900 (JST) Message-ID: <3F6A421F.B6B6B723@tpf.co.jp> Date: Fri, 19 Sep 2003 08:39:11 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Michele Gius Cc: pgsql-odbc@postgresql.org Subject: Re: SQLBrowseConnect: Invalid string or buffer length References: <3F699AC8.3080000@pi.be> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/76 X-Sequence-Number: 3274 SQLBrowseConnect isn't implemented yet, sorry. regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/ Michele Gius wrote: > > Hello, > > I am trying to get the SQLBrowseConnect function to work. I used > ODBCTest.exe from the MDAC SDK to check for results but I always get > messages like the following: > > SQLBrowseConnect: > In: ConnectionHandle = 0x00761830, > InConnectionString = > "DSN=postgresql30", StringLength1 = 16, OutConnectionString = 0x000C8C18, > BufferLength = 300, > StringLength2Ptr = 0x000C2CD0 > Return: SQL_ERROR=-1 > Out: *OutConnectionString = , > *StringLength2Ptr = > dbc: szSqlState = "HY090", *pfNativeError = 0, > *pcbErrorMsg = 64 > szErrorMsg = "[Microsoft][ODBC > Driver Manager] Invalid string or buffer length" > > Input strings tried: > DSN=postgresql30 > DSN=postgresql30; > Driver=PostgreSQL > Driver=PostgreSQL; > Driver={PostgreSQL} > Driver={PostgreSQL}; > > Where postgresql30 is a valid System DSN which I successfully use to > connect to the server with PGAdmin III > and PostgreSQL is the installed ODBC driver in version 7.03.01.00 . The > running backend is cygwin PostgreSQL 7.3.4. > The whole is running on Win2k with SP4 and MDAC 2.7 installed. > > The ODBC 3 attribute has been set after acquiring the environment handle. > SQL_ATTR_ODBC_CURSORS=110 has been set to SQL_CUR_USE_ODBC=1 . > > I would be really glad if someone had an idea what is wrong here. > Thanks in advance > > Michele. > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org