Volodymyr Cherepanyak | 13 Nov 2006 17:41
Favicon

Integer data issues with MS Access

Hi,

I have issue with reading data from MS Access .mdb  file on linux. Column names are not present in select results, integer data miss represented.

Col0
3158067
3486259

but in isql the same query returns:
 
item_qty
300
325

the item_qty type is Integer

Configuration: Zope 2.9.5, Python 2.4.3., mxODBCDA (egenix-mxodbc-zopeda-1.0.10.linux-i686-py2.4_ucs2.zip ), FedoraCore 4, unixODBC 2.2.11-3, mdbtools-20051217-1

--
Volodymyr Cherepanyak


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
M.-A. Lemburg | 15 Nov 2006 10:51
Favicon

Re: Integer data issues with MS Access

Volodymyr Cherepanyak wrote:
> Hi,
> 
> I have issue with reading data from MS Access .mdb  file on linux. Column
> names are not present in select results, integer data miss represented.
> 
> Col0
> 3158067
> 3486259
> 
> but in isql the same query returns:
> 
> item_qty
> 300
> 325
> 
> the item_qty type is Integer
> 
> Configuration: Zope 2.9.5, Python 2.4.3., mxODBCDA (
> egenix-mxodbc-zopeda-1.0.10.linux-i686-py2.4_ucs2.zip ), FedoraCore 4,
> unixODBC 2.2.11-3, mdbtools-20051217-1

This looks like a problem with the mdbtools ODBC driver having
problems with returning integer values.

Note that isql fetches all data as strings, while mxODBC uses
the data types that the ODBC driver announces for each column.

You might want to try the connection option 'Fetch short integers
as integers ?'.

If that doesn't help, there's not a lot we can do. While we do
try to support as many different ODBC drivers as possible,
we still have to rely on them providing working interfaces.

Regards,
--

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 15 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users

Gianluca Mattiuzzi | 29 Nov 2006 17:41
Picon

Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920)

Hello,
I have a problem with egenix mxODBC Database Connection.
If Oracle via ODBC  with
"isql -n <DSN_NAME> <USER> <PASSWORD>"
the result is
Connected !

But, if I try to connect with the same DSN_NAME, USER and PASSWORD in Zope via mxODBC Database Connection the result is

EGENIX.COM mxODBC Zope DA Problem connecting to the database
 
  Connection string: DSN=DBTEST

Connection pool entry: 0

Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection d
oes not exist', 7920)

Can anyone help me?

Thank you!

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
M.-A. Lemburg | 29 Nov 2006 19:03
Favicon

Re: Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920)

Gianluca Mattiuzzi wrote:
> Hello,
> I have a problem with egenix mxODBC Database Connection.
> If Oracle via ODBC  with
> "isql -n <DSN_NAME> <USER> <PASSWORD>"
> the result is
> Connected !
> 
> But, if I try to connect with the same DSN_NAME, USER and PASSWORD in
> Zope via mxODBC Database Connection the result is
> 
> *EGENIX.COM mxODBC Zope DA*
> 
> Problem connecting to the database
>      Connection string: DSN=DBTEST<br> <br> Connection pool entry: 0<br>
> <br> Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection
> d<br> oes not exist', 7920)
> 
> 
> Can anyone help me?

Please make sure that the DSN is a "System Data Source" and/or
accessible by the Zope service process.

--

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 29 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users

M.-A. Lemburg | 30 Nov 2006 13:06
Favicon

Re: Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection does not exist', 7920)

[Please always CC the egenix-users mailing list - other users may
 have run into similar problems]

Gianluca Mattiuzzi wrote:
> Hello,
> I use a System DSN located in /etc/odbc.ini, ODBC 2.2.11, Oracle 10g and
> Oracle Client for ODBC driver.
> Yesterday I tried to remove unixODBC and install it in the same
> directory of Zope with the owner permissions for zope user, but I have
> the same problem.

Rereading the error message, this sounds a lot like a known problem:

http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000739.html
http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000742.html
http://mail.easysoft.com/pipermail/unixodbc-support/2005-October/000743.html

The cause is a permission problem with the libraries needed
by the ODBC driver. Unfortunately, the error message is not
very accurate and misleads into thinking that the data source
definition cannot be found.

Running unixODBC with ODBC tracing enabled will show the error
message that relates to the specific library which cannot be
opened.

> M.-A. Lemburg ha scritto:
>> Gianluca Mattiuzzi wrote:
>>  
>>> Hello,
>>> I have a problem with egenix mxODBC Database Connection.
>>> If Oracle via ODBC  with
>>> "isql -n <DSN_NAME> <USER> <PASSWORD>"
>>> the result is
>>> Connected !
>>>
>>> But, if I try to connect with the same DSN_NAME, USER and PASSWORD in
>>> Zope via mxODBC Database Connection the result is
>>>
>>> *EGENIX.COM mxODBC Zope DA*
>>>
>>> Problem connecting to the database
>>>      Connection string: DSN=DBTEST<br> <br> Connection pool entry: 0<br>
>>> <br> Error message: ('08003', 0, '[unixODBC][Driver Manager]Connnection
>>> d<br> oes not exist', 7920)
>>>
>>>
>>> Can anyone help me?
>>>     
>>
>> Please make sure that the DSN is a "System Data Source" and/or
>> accessible by the Zope service process.
>>
>>   
> 

--

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 30 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users


Gmane