Re: Class::DBI and DBD::ODBC

[prev] [thread] [next] [Date index for 2004/09/29]

From: Rhesa Rozendaal
Subject: Re: Class::DBI and DBD::ODBC
Date: 22:24 on 29 Sep 2004
Veljko Vidovic wrote:
> Hi, all
> 
> I am trying to transfer mdb (access) data to oracle.
> So, I was thinking of using DBD::ODBC and DBD::Oracle
> together with CDBI.
> Problem is that table names in mdb are space separated, eg. "THIS IS TABLE
> NAME",
> so I am getting:
> DBD::ODBC::db prepare_cached failed: [Microsoft][ODBC Microsoft Access
> Driver]
> Syntax error in FROM clause. (SQL-42000)(DBD: st_prepare/SQLPrepare err=-1)
> [for Statement "SELECT ata FROM   ATA CODES AND DESCRIPTIONS"] at
> C:/Perl/site/lib/Ima/DBI.pm line 391.

Have you tried using Access's table name quoting scheme? Try enclosing 
the name in square brackets, e.g.

	__PACKAGE__->table('[ATA CODES AND DESCRIPTIONS]');

HTH,
Rhesa

Class::DBI::Loader can generate files?
Peter Speltz 17:06 on 29 Sep 2004

Class::DBI and DBD::ODBC
Veljko Vidovic 17:52 on 29 Sep 2004

Re: Class::DBI and DBD::ODBC
Peter Speltz 20:31 on 29 Sep 2004

Re: Class::DBI and DBD::ODBC
Rhesa Rozendaal 22:24 on 29 Sep 2004

Re: Class::DBI and DBD::ODBC
Veljko Vidovic 21:41 on 30 Sep 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52