Unix Technical Forum

SQLAllocHandle failed

This is a discussion on SQLAllocHandle failed within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi! I try to use the driver psqlodbc 08.02.0400 together with unixODBC (2.2.11). Before the driver with the version ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 05:19 PM
=?KOI8-R?Q?=E1=CC=C5=CB=D3=C5=CA_=EC=D5=D4=CF=D7=C9=CE=C9=CE?=
 
Posts: n/a
Default SQLAllocHandle failed

Hi!

I try to use the driver psqlodbc 08.02.0400 together with unixODBC (2.2.11).
Before the driver with the version 08.02.0200 was used, all worked well.
After successful build, installation and adjustment DSN try work by the
utility isql:

#isql mydsn -v
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on
SQL_HANDLE_DBC failed
[ISQL]ERROR: Could not SQLConnect

Identical result for the version UNICODE and ANSI.
Fragment of a file sql.log generated by the manager unixODBC:

sql.log:
[ODBC][31396][__handles.c][444]
Exit:[SQL_SUCCESS]
Environment = 0x8050dd8
[ODBC][31396][SQLAllocHandle.c][345]
Entry:
Handle Type = 2
Input Handle = 0x8050dd8
[ODBC][31396][SQLAllocHandle.c][463]
Exit:[SQL_SUCCESS]
Output Handle = 0x80513b0
[ODBC][31396][SQLConnect.c][3549]
Entry:
Connection = 0x80513b0
Server Name = [archives][length = 8 (SQL_NTS)]
User Name = [NULL]
Authentication = [NULL]
UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE'

[ODBC][31396][SQLAllocHandle.c][318]Error: SQL_INVALID_HANDLE
[ODBC][31396][SQLConnect.c][1548]Error: IM005
[ODBC][31396][SQLError.c][476]Error: SQL_INVALID_HANDLE
[ODBC][31396][SQLFreeHandle.c][268]
Entry:
Handle Type = 2
Input Handle = 0x80513b0
[ODBC][31396][SQLFreeHandle.c][185]Error: SQL_INVALID_HANDLE
[ODBC][31396][SQLFreeHandle.c][317]
Exit:[SQL_SUCCESS]
[ODBC][31396][SQLFreeHandle.c][203]
Entry:
Handle Type = 1
Input Handle = 0x8050dd8


With best regards,
Alex Lutovinin

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com