Re: DBI DBD-ODBC



robert.v.simmons@xxxxxxxxxxxx wrote:

Yes that is the statement I am using in my PERL script.


Robert V Simmons


Can you run your script with DBI_TRACE set to a number >= 10

e.g.
set DBI_TRACE=10=x.log
myperlscript

then send me the x.log file.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com


*Martin Evans <martin.evans@xxxxxxxxxxxx>*

08/15/2007 03:31 AM


To
dbi-users <dbi-users@xxxxxxxx>
cc

Subject
Re: DBI DBD-ODBC








robert.v.simmons@xxxxxxxxxxxx wrote:
> I created an MSACCESS Database on my Windows XP O/S, set up the System
> Name in the DATA SOURCES panel associating the "Microsoft Access
> Driver(*.mdb) with my database name (db1). I installed the DBI Module
> and DBD-ODBC and I still get the following error when I run my PERL
> script..
>
> Could not make a connection to the database: [Microsoft][ODBC Microsoft
> Access D
> river]General error Not enough information to connect to this DSN with
> SQLConnec
> t. Use SQLDriverConnect. (SQL-HY000)(DBD: db_login/SQLConnect err=-1) at
> C:\Do
> cuments and Settings\O015181\Desktop\Edit1.pl line 8.
>
>
> If anyone knows the reason for this error and how I can fix it, I would
> appreciate it very much. I am sending this email as a last resort as I
> have exhausted
> all of my resources.
>
> Regards,
>
> Robert V Simmons
>

Did you use:

DBI->connect('dbi:ODBC:mydsn');

or

DBI->connect('dbi:ODBC:DSN=mydsn');

I would try the latter.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

------------------------------------------------------------------------

.



Relevant Pages

  • Re: DBI DBD-ODBC
    ... Martin J. Evans ... I realised why you were using the like clause but by removing it and seeing the problem go away we now know the problem is with the argument to the where clause. ... When SQLDriverConnect fails DBD::ODBC will have a second attempt with the older ODBC API SQLConnect. ...
    (perl.dbi.users)
  • Re: DBI DBD-ODBC
    ... Robert V Simmons ... Martin Evans ... Re: DBI DBD-ODBC ...
    (perl.dbi.users)
  • Re: Bug found when using a stored procedure with DB2 and DBD::ODBC
    ... On 28-Sep-2006 Martin J. Evans wrote: ... I am trying to call a simple stored procedure on an iSeries / AS400: ...
    (perl.dbi.users)
  • Re: prepare_cached - just how much quicker should I expect?
    ... insert into table1 values ... Martin J. Evans ... I cannot see any difference using prepare_cached with a remote mysql or ...
    (perl.dbi.users)
  • ANNOUNCE: DBD::Oracle 1.19
    ... Fixed execute_array to comply with DBI standard from Martin J. Evans, ... Fixed execute_array so it will not throw a Perl warning on undef values in ...
    (perl.dbi.users)