Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon, which comes first ob_start or session, wwwxxx/58/2010, xxxxdup, xxxxdup, mailx informatii, should producers of software-based services, such as atms, be held liable for economic injuries suffered when their systems fail?

Links

XODOX
Impressum

#1: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-12 00:08:37 by Albert

--001517477fdaf5754104acb1a65f
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I am exporting a MSAccess database to Postgres under windows using ODBC.
An Access table has a column with Currency data type.
When trying to export that table I get a popup message saying the ODBC call
failed,
"the input syntax is invalid for type double precision <40868,8227>" .

(it's not a verbatim error message as I am running Spanish windows version)

I have tried to export that same table using mdbtools' mdb-schema program
and it works correctly, translating it to postgres "money" data type.

Any ideas on how to fix this? I have not found any related settings on the
ODBC driver applet.

I am running Microsoft Access 2010 and postgres 8.4.8-1

Thanks
Albert

--001517477fdaf5754104acb1a65f
Content-Type: text/html; charset=ISO-8859-1

Hi all,<br><br>I am exporting a MSAccess database to Postgres under windows using ODBC.<br>An Access table has a column with Currency data type.<br>When trying to export that table I get a popup message saying the ODBC call failed,<br>

&quot;the input syntax is invalid for type double precision &lt;40868,8227&gt;&quot; .<br><br>(it&#39;s not a verbatim error message as I am running Spanish windows version)<br><br>I
have tried to export that same table using mdbtools&#39; mdb-schema program
and it works correctly, translating it to postgres &quot;money&quot; data type.<br>
<br>Any ideas on how to fix this? I have not found any related settings on the ODBC driver applet.<br><br>I am running Microsoft Access 2010 and postgres 8.4.8-1<br><br>Thanks<br><font color="#888888">Albert</font>

--001517477fdaf5754104acb1a65f--

Report this message

#2: Re: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-12 02:25:48 by Richard Broersma

On Sun, Sep 11, 2011 at 3:08 PM, albert <skarbat@gmail.com> wrote:
> I am exporting a MSAccess database to Postgres under windows using ODBC.
> "the input syntax is invalid for type double precision <40868,8227>" .
> I have tried to export that same table using mdbtools' mdb-schema program
> and it works correctly, translating it to postgres "money" data type.

the postgresql data type you want is NUMERIC.
http://www.postgresql.org/docs/9.1/static/datatype-numeric.h tml#DATATYPE-NUMERIC-DECIMAL


--
Regards,
Richard Broersma Jr.

--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Report this message

#3: Re: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-12 02:37:59 by Albert

--001517478f3229f92d04acb3bdc3
Content-Type: text/plain; charset=ISO-8859-1

The problem is how can I get MSAccess translate that column type properly?
Why would I need to change that manually? I have a bunch of columns of such
type.
The process just stops half way through there's no way I can export that
table.

Additionally, I have tried to change that column type from within access to
all numeric variants, even to text type,
prior to exporting it. Access stops half way through complaining about "not
enough memory", which doesn't make sense.
The table has over 620.000 rows.

2011/9/11 Richard Broersma <richard.broersma@gmail.com>

> On Sun, Sep 11, 2011 at 3:08 PM, albert <skarbat@gmail.com> wrote:
> > I am exporting a MSAccess database to Postgres under windows using ODBC.
> > "the input syntax is invalid for type double precision <40868,8227>" .
> > I have tried to export that same table using mdbtools' mdb-schema program
> > and it works correctly, translating it to postgres "money" data type.
>
> the postgresql data type you want is NUMERIC.
>
> http://www.postgresql.org/docs/9.1/static/datatype-numeric.h tml#DATATYPE-NUMERIC-DECIMAL
>
>
> --
> Regards,
> Richard Broersma Jr.
>

--001517478f3229f92d04acb3bdc3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The problem is how can I get MSAccess translate that column type properly?<=
br>Why would I need to change that manually? I have a bunch of columns of s=
uch type.<br>The process just stops half way through there&#39;s no way I c=
an export that table.<br>
<br>Additionally, I have tried to change that column type from within acces=
s to all numeric variants, even to text type,<br>prior to exporting it. Acc=
ess stops half way through complaining about &quot;not enough memory&quot;,=
which doesn&#39;t make sense.<br>
The table has over 620.000 rows.<br><br><div class=3D"gmail_quote">2011/9/1=
1 Richard Broersma <span dir=3D"ltr">&lt;<a href=3D"mailto:richard.broersma=
@gmail.com">richard.broersma@gmail.com</a>&gt;</span><br><blockquote class=
=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid=
rgb(204, 204, 204); padding-left: 1ex;">
<div class=3D"im">On Sun, Sep 11, 2011 at 3:08 PM, albert &lt;<a href=3D"ma=
ilto:skarbat@gmail.com">skarbat@gmail.com</a>&gt; wrote:<br>
&gt; I am exporting a MSAccess database to Postgres under windows using ODB=
C.<br>
</div><div class=3D"im">&gt; &quot;the input syntax is invalid for type dou=
ble precision &lt;40868,8227&gt;&quot; .<br>
</div><div class=3D"im">&gt; I have tried to export that same table using m=
dbtools&#39; mdb-schema program<br>
&gt; and it works correctly, translating it to postgres &quot;money&quot; d=
ata type.<br>
<br>
</div>the postgresql data type you want is NUMERIC.<br>
<a href=3D"http://www.postgresql.org/docs/9.1/static/datatype-numeric.html#=
DATATYPE-NUMERIC-DECIMAL" target=3D"_blank">http://www.postgresql.org/docs/=
9.1/static/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL</a><br>
<font color=3D"#888888"><br>
<br>
--<br>
Regards,<br>
Richard Broersma Jr.<br>
</font></blockquote></div><br>

--001517478f3229f92d04acb3bdc3--

Report this message

#4: Re: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-12 03:26:40 by Richard Broersma

On Sun, Sep 11, 2011 at 5:37 PM, albert <skarbat@gmail.com> wrote:
> The problem is how can I get MSAccess translate that column type properly?
> Why would I need to change that manually? I have a bunch of columns of such
> type.
> The process just stops half way through there's no way I can export that
> table.
>
> Additionally, I have tried to change that column type from within access to
> all numeric variants, even to text type,
> prior to exporting it. Access stops half way through complaining about "not
> enough memory", which doesn't make sense.
> The table has over 620.000 rows.

Have you considered using a ETL such as Kettle. It can read access
files just fine and can make any data-type translations you need.

I'll need to wait until monday before I can take a look at the ODBC
drive for Postgresql to see if it has any parameters that may be of
help.


--
Regards,
Richard Broersma Jr.

--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Report this message

#5: Re: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-12 21:35:33 by Albert

--001517448076643d0504acc3a142
Content-Type: text/plain; charset=ISO-8859-1

Thanks Harun,

I could csv-export the table correctly, so no corruption apparently. I found
a registry key called "LocksPerPage" that belongs to MS Office, after
increasing it I was able to translate MSAcces Currency type to Integer
successfully. Exporting through ODBC right after that was also successful.
However that doesn't ring me a bell on how one can automagically export an
MSAccess table through postgres odbc when having a column with Currency data
type.

Thanks Richard for your suggestion.

Regards,
Albert

2011/9/12 aihtdikh <aihtdikh@gmail.com>

> Hi Albert,
>
> Is Access able to do anything with the data in that column?
> For example, exporting the data to a .csv file, or even just creating
> another table with a copy of the same data.
>
> If mdbtools can read the data, but MSAccess itself cannot, I would suspect
> some sort of corruption in the mdb.
>
> Regards,
> Harun
>
>
> On 12/09/2011 08:37, albert wrote:
>
> The problem is how can I get MSAccess translate that column type properly?
> Why would I need to change that manually? I have a bunch of columns of such
> type.
> The process just stops half way through there's no way I can export that
> table.
>
> Additionally, I have tried to change that column type from within access to
> all numeric variants, even to text type,
> prior to exporting it. Access stops half way through complaining about "not
> enough memory", which doesn't make sense.
> The table has over 620.000 rows.
>
> 2011/9/11 Richard Broersma <richard.broersma@gmail.com>
>
>> On Sun, Sep 11, 2011 at 3:08 PM, albert <skarbat@gmail.com> wrote:
>> > I am exporting a MSAccess database to Postgres under windows using ODBC.
>> > "the input syntax is invalid for type double precision <40868,8227>" .
>> > I have tried to export that same table using mdbtools' mdb-schema
>> program
>> > and it works correctly, translating it to postgres "money" data type.
>>
>> the postgresql data type you want is NUMERIC.
>>
>> http://www.postgresql.org/docs/9.1/static/datatype-numeric.h tml#DATATYPE-NUMERIC-DECIMAL
>>
>>
>> --
>> Regards,
>> Richard Broersma Jr.
>>
>
>
>

--001517448076643d0504acc3a142
Content-Type: text/html; charset=ISO-8859-1

Thanks Harun,<br><br>I could csv-export the table correctly, so no
corruption apparently. I found a registry key called &quot;LocksPerPage&quot; that
belongs to MS Office, after increasing it I was able to translate
MSAcces Currency type to Integer successfully. Exporting through ODBC
right after that was also successful. However that doesn&#39;t ring me a
bell on how one can automagically export an MSAccess table through
postgres odbc when having a column with Currency data type.<br>
<br>Thanks Richard for your suggestion.<br><br>Regards,<br><font color="#888888">Albert</font><br><br><div class="gmail_quote">2011/9/12 aihtdikh <span dir="ltr">&lt;<a href="mailto:aihtdikh@gmail.com">aihtdikh@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div bgcolor="#FFFFFF" text="#000000">
Hi Albert,<br>
<br>
Is Access able to do anything with the data in that column?<br>
For example, exporting the data to a .csv file, or even just
creating another table with a copy of the same data.<br>
<br>
If mdbtools can read the data, but MSAccess itself cannot, I would
suspect some sort of corruption in the mdb.<br>
<br>
Regards,<br>
Harun<div><div></div><div class="h5"><br>
<br>
On 12/09/2011 08:37, albert wrote:
<blockquote type="cite">The problem is how can I get MSAccess translate that
column type properly?<br>
Why would I need to change that manually? I have a bunch of
columns of such type.<br>
The process just stops half way through there&#39;s no way I can
export that table.<br>
<br>
Additionally, I have tried to change that column type from within
access to all numeric variants, even to text type,<br>
prior to exporting it. Access stops half way through complaining
about &quot;not enough memory&quot;, which doesn&#39;t make sense.<br>
The table has over 620.000 rows.<br>
<br>
<div class="gmail_quote">2011/9/11 Richard Broersma <span dir="ltr">&lt;<a href="mailto:richard.broersma@gmail.com" target="_blank">richard.broersma@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On Sun, Sep 11, 2011 at 3:08 PM, albert &lt;<a href="mailto:skarbat@gmail.com" target="_blank">skarbat@gmail.com</a>&gt;
wrote:<br>
&gt; I am exporting a MSAccess database to Postgres under
windows using ODBC.<br>
</div>
<div>&gt; &quot;the input syntax is invalid for type
double precision &lt;40868,8227&gt;&quot; .<br>
</div>
<div>&gt; I have tried to export that same table
using mdbtools&#39; mdb-schema program<br>
&gt; and it works correctly, translating it to postgres
&quot;money&quot; data type.<br>
<br>
</div>
the postgresql data type you want is NUMERIC.<br>
<a href="http://www.postgresql.org/docs/9.1/static/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL" target="_blank"> http://www.postgresql.org/docs/9.1/static/datatype-numeric.h tml#DATATYPE-NUMERIC-DECIMAL</a><br>

<font color="#888888"><br>
<br>
--<br>
Regards,<br>
Richard Broersma Jr.<br>
</font></blockquote>
</div>
<br>
</blockquote>
<br>
</div></div></div>

</blockquote></div><br>

--001517448076643d0504acc3a142--

Report this message

#6: Re: MSAccess to postgres on Windows Currency type problem

Posted on 2011-09-13 01:08:03 by Tom Lane

albert <skarbat@gmail.com> writes:
> I could csv-export the table correctly, so no corruption apparently. I found
> a registry key called "LocksPerPage" that belongs to MS Office, after
> increasing it I was able to translate MSAcces Currency type to Integer
> successfully. Exporting through ODBC right after that was also successful.
> However that doesn't ring me a bell on how one can automagically export an
> MSAccess table through postgres odbc when having a column with Currency data
> type.

It looks like you're using a locale in which the decimal separator is
comma rather than period. Perhaps changing some locale setting on the
MSAccess side would help?

regards, tom lane

--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Report this message