<snip>

>
> >> > > DBI->connect(database=onetoone;host=64.78.148.124;port=1071)
> >> > > failed: [iODBC][Driver Manager]Invalid string or buffer
> >> length (SQL-S1090)
>
> This happens because DBD::ODBC tries to use SQLDriverConnect
> first and if that
> fails it uses SQLConnect. SQLConnect in the ODBC spec is defined
> as taking a
> Server string (the first arg to SQLConnect) no longer than
> SQL_MAX_DSN_LENGTH
> which is usually 32.

Hmmm...I wonder if I should skip the SQLConnect, if the string is longer
than SQL_MAX_DSN_LENGTH?


>
> >> > > [iODBC][Driver Manager]Data source name not found and no default
> >> > > driver specified. Driver could not be loaded (SQL-IM002)(DBD:
> >> > > db_login/SQLConnect err=-1) at t/02simple.t line 13
>
> You did not appear to specify a driver in the connect string. You need to
> specify one of DSN=, DRIVER= or FILEDSN=.
>
> Martin
> --
> Martin J. Evans
> Easysoft Ltd, UK
> Development
>
>

Jeff

Reply via email to