Unix Technical Forum

Problem connecting from Windows 9x/Me

This is a discussion on Problem connecting from Windows 9x/Me within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi, Thank you for the ODBC driver, it has enabled us to access the PostgreSQL server from our Windows ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 01:10 AM
Harry Sufehmi
 
Posts: n/a
Default Problem connecting from Windows 9x/Me


Hi,

Thank you for the ODBC driver, it has enabled us to access the PostgreSQL
server from our Windows 2000 & XP machine.
However, people on Windows 9x/Me machines are having problems.

Basically, everytime they open the MS Access application, the application
failed with the following error message:
"ODBC -- connection to 'pgsql_sir' failed."

There's a workaround for this - if we create a new table link to the
PostgreSQL database, then afterwards everything works fine. I have no idea
why it solves the problem (temporarily), but there you go.

But of course this can not be / not feasible to be done by the users
everytime they start up the application, so I hope somebody can help us to
solve this problem.

I've made the SQL.LOG files (ODBC tracing output) available :

http://www.abangadek.com/tamu/ODBCLO...to-connect.txt
Recorded the failure of our internal MS Access application to connect to
the PostgreSQL server

http://www.abangadek.com/tamu/ODBCLO...-in-Access.txt
Recorded the table link creation process to the PostgreSQL server.
Afterwards, the MS Access application can access the PostgreSQL database
with no problem whatsoever.

We'd be grateful for any assistance anyone can give us regarding this.


Many thanks,
Harry


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 01:10 AM
Richard Huxton
 
Posts: n/a
Default Re: Problem connecting from Windows 9x/Me

Harry Sufehmi wrote:
>
> Hi,
>
> Thank you for the ODBC driver, it has enabled us to access the
> PostgreSQL server from our Windows 2000 & XP machine.
> However, people on Windows 9x/Me machines are having problems.
>
> Basically, everytime they open the MS Access application, the
> application failed with the following error message:
> "ODBC -- connection to 'pgsql_sir' failed."
>
> There's a workaround for this - if we create a new table link to the
> PostgreSQL database, then afterwards everything works fine. I have no
> idea why it solves the problem (temporarily), but there you go.
>
> But of course this can not be / not feasible to be done by the users
> everytime they start up the application, so I hope somebody can help us
> to solve this problem.


Hmm - not seen this particular problem. I'd suspect a problem with
name-lookup though - I've seen that cause strange problems with Access
and linked tables/connections.

Might be worth trying:
1. Connect using the IP address of the server, not it's name
2. Add the server's IP and name to the HOSTS/LMHOSTS file(s)
There are details on step 2 on the web - just google.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 01:11 AM
Harry Sufehmi
 
Posts: n/a
Default Re: Problem connecting from Windows 9x/Me

Hi,

I've tried creating a table link in Access automatically (so my users won't
have to). Unfortunately, it still unable to connect.

I've done further investigation on the ODBC trace logs, and it seems the
difference is here:

Success:
======================================
sir fffaa095-fff4e88d ENTER SQLDriverConnectW
HDBC 07A70D54
HWND 000005F4
WCHAR * 0x1F7D8B70 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7D8B70
SWORD 8
SWORD * 0x00000000
UWORD 1 <SQL_DRIVER_COMPLETE>
sir fffaa095-fff4e88d EXIT SQLDriverConnectW with
return code 0 (SQL_SUCCESS)
======================================

Failed:
======================================
sir fffaa095-fff4e88d ENTER SQLDriverConnectW
HDBC 07A70080
HWND 000005F4
WCHAR * 0x1F7D8B70 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7D8B70
SWORD 8
SWORD * 0x00000000
UWORD 3 <SQL_DRIVER_COMPLETE_REQUIRED>
sir fffaa095-fff4e88d EXIT SQLDriverConnectW with
return code -1 (SQL_ERROR)
======================================

However, I noted that the connection from a Windows 2000 machine (which
never encounter this issue) uses SQL_DRIVER_COMPLETE_REQUIRED parameter as
well (and it connects just fine). So probably that's not the culprit.

A discussion I found mentioned about the ODBC driver using Unicode,
therefore causing problems on Windows9x/Me machines.
I wonder if that's the case here as well.

Those are my findings so far.
Any help would be greatly appreciated.


Thanks,
Harry



At 14:37 27/04/2005 +0700, Harry Sufehmi wrote:
>Basically, everytime they open the MS Access application, the application
>failed with the following error message:
>"ODBC -- connection to 'pgsql_sir' failed."
>
>There's a workaround for this - if we create a new table link to the
>PostgreSQL database, then afterwards everything works fine. I have no idea
>why it solves the problem (temporarily), but there you go.
>
>But of course this can not be / not feasible to be done by the users
>everytime they start up the application, so I hope somebody can help us to
>solve this problem.
>
>I've made the SQL.LOG files (ODBC tracing output) available :
>
>http://www.abangadek.com/tamu/ODBCLO...to-connect.txt
>Recorded the failure of our internal MS Access application to connect to
>the PostgreSQL server
>
>http://www.abangadek.com/tamu/ODBCLO...-in-Access.txt
>Recorded the table link creation process to the PostgreSQL server.
>Afterwards, the MS Access application can access the PostgreSQL database
>with no problem whatsoever.
>
>We'd be grateful for any assistance anyone can give us regarding this.
>
>
>Many thanks,
>Harry



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

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 08:45 AM.


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