pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed126 Error Connecting With psqlODBC 32 bit
8+ messages / 3 participants
[nested] [flat]
* 126 Error Connecting With psqlODBC 32 bit
@ 2014-05-22 23:37 Denise McGrath <denisemichele@outlook.com>
2014-05-23 04:00 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-01 20:53 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2014-09-22 16:54 ` Re: 126 Error Connecting With psqlODBC 32 bit chava <chavaneelima37@gmail.com>
0 siblings, 3 replies; 8+ messages in thread
From: Denise McGrath @ 2014-05-22 23:37 UTC (permalink / raw)
To: pgsql-odbc; Denise McGrath <denisemichele@outlook.com>
Hi,
I got your email from the faq page http://psqlodbc.projects.pgfoundry.org/faq.html. I am having a really difficult time setting up the 32 bit psqlodbc driver. I have the 9.3 version of PostgreSQL. It downloaded the psqlodbc_09_03_0210-x64 and that worked fine as far as connecting to the database through pgAdminIII, but I need to use a 32 bit because I am running an asp page that connects to the PostgreSQL 9.3 database.
So I downloaded the psqlodbc_09_03_0210.zip latest driver.
Here is the registry information:HK_LOCAL_MACHINE/SOFTWARE/Wow6432Node/ODBC/ODBCINST.INI/PostgreSQL Unicode:
Driver: c:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dllSetup: c:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll
All access is granted on the bin folder and .dlls. The .dlls are in the correct path as the registry. And I still keep getting this error when I try to connect to the PostgreSQL database using the PostgreSQL Unicode driver, and I know the .dll is there? fyi...there is also a psqlodbc30a.dll in the bin folder?:
"The setup routines for the PostgreSQL ANSI ODBC driver could not be loaded due to system error code 126: The specified module could not be found. (C:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll)."
Here is my Data Access Information:HK_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Data Access/FullInstallVer:
FullInstallVer = 6.1.7601.17514
Is there anything else that I am missing? Please please help as I have working on this for almost a week with no luck and am completely baffled :-(
Thanks!Denise =
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
@ 2014-05-23 04:00 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-05-23 14:16 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2014-05-23 20:13 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2 siblings, 2 replies; 8+ messages in thread
From: Adrian Klaver @ 2014-05-23 04:00 UTC (permalink / raw)
To: Denise McGrath <denisemichele@outlook.com>; pgsql-odbc
On 05/22/2014 04:37 PM, Denise McGrath wrote:
> Hi,
>
> I got your email from the faq page
> http://psqlodbc.projects.pgfoundry.org/faq.html. I am having a really
> difficult time setting up the 32 bit psqlodbc driver. I have the 9.3
> version of PostgreSQL. It downloaded the psqlodbc_09_03_0210-x64
> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip; and
> that worked fine as far as connecting to the database through
> pgAdminIII, but I need to use a 32 bit because I am running an asp page
> that connects to the PostgreSQL 9.3 database.
>
> So I downloaded the psqlodbc_09_03_0210.zip
> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip; latest
> driver.
>
> _Here is the registry information:_
> HK_LOCAL_MACHINE/SOFTWARE/Wow6432Node/ODBC/ODBCINST.INI/PostgreSQL Unicode:
>
> Driver: c:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll
> Setup: c:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll
>
> All access is granted on the bin folder and .dlls. The .dlls are in the
> correct path as the registry. And I still keep getting this error when
> I try to connect to the PostgreSQL database using the PostgreSQL Unicode
> driver, and I know the .dll is there? fyi...there is also a
> psqlodbc30a.dll in the bin folder?:
>
> "The setup routines for the PostgreSQL ANSI ODBC driver could not be
> loaded due to system error code 126: The specified module could not be
> found. (C:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll)."
>
> _Here is my Data Access Information:_
> HK_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Data Access/FullInstallVer:
>
> FullInstallVer = 6.1.7601.17514
>
> Is there anything else that I am missing? Please please help as I have
> working on this for almost a week with no luck and am completely baffled :-(
Could you be seeing this:
http://www.postgresql.org/message-id/537D0BD9.20063.1320DFA8@david.joffe.tshwanedje.com
>
> Thanks!
> Denise
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
2014-05-23 04:00 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-05-23 14:16 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 8+ messages in thread
From: Adrian Klaver @ 2014-05-23 14:16 UTC (permalink / raw)
To: Denise McGrath <denisemichele@outlook.com>; +Cc: pgsql-odbc
On 05/22/2014 09:43 PM, Denise McGrath wrote:
> No, sorry. I forgot to tell you all, I have a Windows Server 2008 R2
> Standard, and it is happening when I click on ADD in the ODBC 32 bit
> Manager, which is C:\Windows\SysWOW64\odbcad32.exe.
>
Are you sure you are not experiencing a variation of the problem David
reported?
In other words is msvcr100.dll present or not and if not, does supplying
it cure the problem?
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
2014-05-23 04:00 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-05-23 20:13 ` Adrian Klaver <adrian.klaver@aklaver.com>
1 sibling, 0 replies; 8+ messages in thread
From: Adrian Klaver @ 2014-05-23 20:13 UTC (permalink / raw)
To: Denise McGrath <denisemichele@outlook.com>; pgsql-odbc
On 05/22/2014 09:43 PM, Denise McGrath wrote:
> No, sorry. I forgot to tell you all, I have a Windows Server 2008 R2
> Standard, and it is happening when I click on ADD in the ODBC 32 bit
> Manager, which is C:\Windows\SysWOW64\odbcad32.exe.
>
Well I cranked up a 2008R2 instance on AWS EC2 and can confirm the
error. I tried my suggestion of moving msvcr100.dll(actually it had a
version string in it) into the bin directory and that did not help.
Though when I renamed the versioned dll to msvcr100.dll the error
changed, so it sorts of points to a dependency issue in the psqodbc
dlls. Others with more knowledge of this will need to look at this.
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
@ 2014-06-01 20:53 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-02 02:29 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2 siblings, 1 reply; 8+ messages in thread
From: Adrian Klaver @ 2014-06-01 20:53 UTC (permalink / raw)
To: Denise McGrath <denisemichele@outlook.com>; pgsql-odbc
On 05/22/2014 04:37 PM, Denise McGrath wrote:
> Hi,
>
> I got your email from the faq page
> http://psqlodbc.projects.pgfoundry.org/faq.html. I am having a really
> difficult time setting up the 32 bit psqlodbc driver. I have the 9.3
> version of PostgreSQL. It downloaded the psqlodbc_09_03_0210-x64
> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip; and
> that worked fine as far as connecting to the database through
> pgAdminIII, but I need to use a 32 bit because I am running an asp page
> that connects to the PostgreSQL 9.3 database.
>
> So I downloaded the psqlodbc_09_03_0210.zip
> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip; latest
> driver.
>
> "The setup routines for the PostgreSQL ANSI ODBC driver could not be
> loaded due to system error code 126: The specified module could not be
> found. (C:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll)."
>
> Is there anything else that I am missing? Please please help as I have
> working on this for almost a week with no luck and am completely baffled :-(
Anyone have an idea on what is going on here. I confirmed the error
using a clean Windows Server 2008R2 AMI on AWS. I tried to add a 32bit
DataSource and got the same error.
>
> Thanks!
> Denise
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
2014-06-01 20:53 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-06-02 02:29 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-02 04:21 ` Re: 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
0 siblings, 1 reply; 8+ messages in thread
From: Adrian Klaver @ 2014-06-02 02:29 UTC (permalink / raw)
To: Denise McGrath <denisemichele@outlook.com>; pgsql-odbc
On 06/01/2014 01:53 PM, Adrian Klaver wrote:
> On 05/22/2014 04:37 PM, Denise McGrath wrote:
>> Hi,
>>
>> I got your email from the faq page
>> http://psqlodbc.projects.pgfoundry.org/faq.html. I am having a really
>> difficult time setting up the 32 bit psqlodbc driver. I have the 9.3
>> version of PostgreSQL. It downloaded the psqlodbc_09_03_0210-x64
>> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip;
>> and
>> that worked fine as far as connecting to the database through
>> pgAdminIII, but I need to use a 32 bit because I am running an asp page
>> that connects to the PostgreSQL 9.3 database.
>>
>> So I downloaded the psqlodbc_09_03_0210.zip
>> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip;
>> latest
>> driver.
>
>>
>> "The setup routines for the PostgreSQL ANSI ODBC driver could not be
>> loaded due to system error code 126: The specified module could not be
>> found. (C:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll)."
>>
>
>> Is there anything else that I am missing? Please please help as I have
>> working on this for almost a week with no luck and am completely
>> baffled :-(
>
> Anyone have an idea on what is going on here. I confirmed the error
> using a clean Windows Server 2008R2 AMI on AWS. I tried to add a 32bit
> DataSource and got the same error.
Well the previous comment was about psqlodbc_09_03_0210.zip.
With psqlodbc_09_03_0300-x64.zip I cannot even get it to install.
Running Dependency Walker psqlodbc30a.dll shows several issues seen in
the attached screenshot.
I see the same thing with psqlodbc_09_03_0300.zip
>
>>
>> Thanks!
>> Denise
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
dependency_problems.png (image/png, 55.4K) download
view image
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
2014-06-01 20:53 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-02 02:29 ` Re: 126 Error Connecting With psqlODBC 32 bit Adrian Klaver <adrian.klaver@aklaver.com>
@ 2014-06-02 04:21 ` Denise McGrath <denisemichele@outlook.com>
0 siblings, 0 replies; 8+ messages in thread
From: Denise McGrath @ 2014-06-02 04:21 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@aklaver.com>; pgsql-odbc
Well, guess what? After much pain, but absolutely worth it, I've gotten it to work. It turns out that some postgre is compiled in C++ and with Windows 2008, the C++ Redistributable is not installed by default. So I installed this:
http://www.microsoft.com/en-us/download/details.aspx?id=29
And now I am able to configure the 32bit postgreSQL Unicode driver on my server, and of course I am also able to use it through my .asp page with connection string:
connstr= "Driver={PostgreSQL UNICODE};DATABASE=dbname;Server=ipaddress;UID=userid;PWD=password;"
I really hope this helps, and thanks to all who looked into it.
Thanks again,Denise
> Date: Sun, 1 Jun 2014 19:29:32 -0700
> From: adrian.klaver@aklaver.com
> To: denisemichele@outlook.com; pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] 126 Error Connecting With psqlODBC 32 bit
>
> On 06/01/2014 01:53 PM, Adrian Klaver wrote:
> > On 05/22/2014 04:37 PM, Denise McGrath wrote:
> >> Hi,
> >>
> >> I got your email from the faq page
> >> http://psqlodbc.projects.pgfoundry.org/faq.html. I am having a really
> >> difficult time setting up the 32 bit psqlodbc driver. I have the 9.3
> >> version of PostgreSQL. It downloaded the psqlodbc_09_03_0210-x64
> >> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip;
> >> and
> >> that worked fine as far as connecting to the database through
> >> pgAdminIII, but I need to use a 32 bit because I am running an asp page
> >> that connects to the PostgreSQL 9.3 database.
> >>
> >> So I downloaded the psqlodbc_09_03_0210.zip
> >> <http://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0210-x64.zip;
> >> latest
> >> driver.
> >
> >>
> >> "The setup routines for the PostgreSQL ANSI ODBC driver could not be
> >> loaded due to system error code 126: The specified module could not be
> >> found. (C:\Program Files (x86)\psqlODBC\0903\bin\psqlodbc35w.dll)."
> >>
> >
> >> Is there anything else that I am missing? Please please help as I have
> >> working on this for almost a week with no luck and am completely
> >> baffled :-(
> >
> > Anyone have an idea on what is going on here. I confirmed the error
> > using a clean Windows Server 2008R2 AMI on AWS. I tried to add a 32bit
> > DataSource and got the same error.
>
> Well the previous comment was about psqlodbc_09_03_0210.zip.
>
> With psqlodbc_09_03_0300-x64.zip I cannot even get it to install.
> Running Dependency Walker psqlodbc30a.dll shows several issues seen in
> the attached screenshot.
>
> I see the same thing with psqlodbc_09_03_0300.zip
>
> >
> >>
> >> Thanks!
> >> Denise
> >
> >
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
=
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: 126 Error Connecting With psqlODBC 32 bit
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
@ 2014-09-22 16:54 ` chava <chavaneelima37@gmail.com>
2 siblings, 0 replies; 8+ messages in thread
From: chava @ 2014-09-22 16:54 UTC (permalink / raw)
To: pgsql-odbc
i have tried by adding microsoft.data.odbc.dll manually in
c:\programfiles\psqlodbc\0903\bin
and it is working without errors in windows 7-32 bit, prior to it i was
getting the same 126 error code which was rectified later
--
View this message in context: http://postgresql.1045698.n5.nabble.com/126-Error-Connecting-With-psqlODBC-32-bit-tp5804761p5819937....
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2014-09-22 16:54 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 23:37 126 Error Connecting With psqlODBC 32 bit Denise McGrath <denisemichele@outlook.com>
2014-05-23 04:00 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-05-23 14:16 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-05-23 20:13 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-01 20:53 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-02 02:29 ` Adrian Klaver <adrian.klaver@aklaver.com>
2014-06-02 04:21 ` Denise McGrath <denisemichele@outlook.com>
2014-09-22 16:54 ` chava <chavaneelima37@gmail.com>
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