[Tutor] ODBC problem

Bob Gailer bgailer@alum.rpi.edu
Mon Jun 23 11:50:16 2003


--=======52592513=======
Content-Type: text/plain; x-avg-checked=avg-ok-5664656; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 11:11 AM 6/23/2003 +0800, ali mangaliag wrote:

> >>> import odbc
> >  >>> odbc.odbc("Driver=Microsoft Visual FoxPro
> > Driver;SourceType=DBF;SourceDB=j:\\samis\\academy;Exclusive=No")
> > Traceback (most recent call last):
> >    File "<interactive input>", line 1, in ?
> > dbi.internal-error: [Microsoft][ODBC Driver Manager] Invalid string or
> > buffer length in LOGIN
> >
>
>i came accross the same problem before...
>try using the old way of making connection strings...
>
>odbc.odbc("dsn/user/password")

But doesn't that require that I create a Data Source? I'm trying to avoid 
that extra step.

Bob Gailer
bgailer@alum.rpi.edu
303 442 2625

--=======52592513=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-5664656
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003

--=======52592513=======--