pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQLBrowseConnect: Invalid string or buffer length
3+ messages / 2 participants
[nested] [flat]
* SQLBrowseConnect: Invalid string or buffer length
@ 2003-09-18 11:45 Michele Gius <mgius@pi.be>
0 siblings, 1 reply; 3+ messages in thread
From: Michele Gius @ 2003-09-18 11:45 UTC (permalink / raw)
To: pgsql-odbc
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQLBrowseConnect: Invalid string or buffer length
@ 2003-09-18 23:39 Hiroshi Inoue <Inoue@tpf.co.jp>
parent: Michele Gius <mgius@pi.be>
0 siblings, 1 reply; 3+ messages in thread
From: Hiroshi Inoue @ 2003-09-18 23:39 UTC (permalink / raw)
To: Michele Gius <mgius@pi.be>; +Cc: pgsql-odbc
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 = <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.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SQLBrowseConnect: Invalid string or buffer length
@ 2003-09-19 07:22 Michele Gius <mgius@pi.be>
parent: Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 3+ messages in thread
From: Michele Gius @ 2003-09-19 07:22 UTC (permalink / raw)
To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-odbc
I guess I should have looked up the source and its documentation before.
Instead I just issued a SQLGetFunctions which returned among others
SQL_API_SQLBROWSECONNECT = 55 SQL_TRUE
Thank you for your answer and above all thanks to you and the team for
this great driver.
It really works very well..
Regards,
Michele.
Hiroshi Inoue wrote:
>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 = <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.
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 6: Have you searched our list archives?
>>
>> http://archives.postgresql.org
>>
>>
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2003-09-19 07:22 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18 11:45 SQLBrowseConnect: Invalid string or buffer length Michele Gius <mgius@pi.be>
2003-09-18 23:39 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2003-09-19 07:22 ` Michele Gius <mgius@pi.be>
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