Thanks Paul,
That did the trick...
Regards,
Rob
----- Original Message -----
From: Paul DuBois <[EMAIL PROTECTED]>
To: Rob Leadbeater <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 6:02 PM
Subject: Re: RaiseError and PrintError
> >Hi,
> >
> >I'm knocking up a small script to copy some CSV data files into a MS
> >SQL/Access database using DBD::ODBC.
> >
> >>From the documentation I've read I believe that I'm correct in saying
that
> >if I set RaiseError and PrintError as follows:
> >
> >$dbh2 = DBI->connect("DBI:ODBC:Database", {RaiseError=>0,
PrintError=>0} );
>
> connect() takes 4 arguments. You're missing the 2nd and 3rd arguments.
> The attribute hash should be the 4th argument, not the 2nd.
>
> >
> >then I shouldn't get any output to screen in the event of errors.
>
>