pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michele Gius <mgius@pi.be>
To: pgsql-odbc@postgresql.org
Subject: SQLBrowseConnect:  Invalid string or buffer length
Date: Thu, 18 Sep 2003 13:45:12 +0200
Message-ID: <3F699AC8.3080000@pi.be> (raw)

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 = <unmodified>,
                                        *StringLength2Ptr = <unmodified>
                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.




view thread (3+ messages)  latest in thread

Message-ID: <3F699AC8.3080000@pi.be>
Permalink:  ../3F699AC8.3080000@pi.be/
Also on:    postgresql.org/message-id/3F699AC8.3080000@pi.be

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: mgius@pi.be
  Subject: Re: SQLBrowseConnect:  Invalid string or buffer length
  In-Reply-To: <3F699AC8.3080000@pi.be>
  References: <3F699AC8.3080000@pi.be>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox