DBI and DBF Files

------=_NextPart_000_0007_01C7CA43.9D342B90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Gurus,

I need your help. I am using active perl 5.8.8, windowsXP second =
edition. I am trying to access an old app by using perl and odbc. I =
created a system DSN in ODBC data source administrator and I tested by =
using crstal report writer. Things are fine. I use DBI (1.58 & dbd-odbc =
is 1.13) through this DSN(odbc) to read an old dBaseIII file, only one =
record can be retrived while there are two in the file. The sql is the =
following:

$sql=3D"Select size, color, qty, totship from smtran02 where =
sono=3D'S9190' order by size, color";
$dbh=3DDBI->connect($dsn,$user,$pswrd,$driver,{RaiseError=3D >1}) or die =
"Database connection not made: $DBI::errstr";
$sth =3D $dbh->prepare($sql);
$sth->execute();

do you know any thing about it or any idea how to access an old dBaseIII =
file? Thanks.


Samuel Zheng


------=_NextPart_000_0007_01C7CA43.9D342B90--
samuel_zheng [ Fr, 20 Juli 2007 02:30 ] [ ID #1774527 ]

Re: DBI and DBF Files

Samuel_Zheng wrote:

Hi Samuel

CPAN says: http://search.cpan.org/~janpaz/DBD-XBase-0.241/

I use this module successfully.
--
Ron Savage
ron [at] savage.net.au
http://savage.net.au/
ron [ Fr, 20 Juli 2007 03:03 ] [ ID #1774528 ]
Perl » perl.dbi.users » DBI and DBF Files

Vorheriges Thema: float bug? perl 5.8, DBI and oracle 10.2.0
Nächstes Thema: DBI requires 5.6.0 or 5.6.1?