Re: mxODBC sql MSAccess

2005-11-23 Thread Steve Holden
BartlebyScrivener wrote: > Hello, I'm new to python and trying to get records from an MSAccess > database using mxODBC. It works, but the output is not formatted the > way I want it. > > Here's the script: > > import mx.ODBC.Windows as odbc > > driv='DRIVER={Microsoft Access Driver (*.mdb)};DBQ=

Re: mxODBC sql MSAccess

2005-11-21 Thread BartlebyScrivener
Works!! Thank you all so much. I didn't know it was coming back as a tuple, and I'm sure that would have taken me four hours to figure out. Appreciate it! bs Chris Curvey wrote: > mxODBC implements the Python DB-API spec, which states that each "row" > of query results is returned as

Re: mxODBC sql MSAccess

2005-11-21 Thread Chris Curvey
mxODBC implements the Python DB-API spec, which states that each "row" of query results is returned as a tuple. If you want the data displayed differently, you can do it yourself. for row in rows: print "\t".join(row) should do it. -- http://mail.python.org/mailman/listinfo/python-list

Re: mxODBC sql MSAccess

2005-11-21 Thread [EMAIL PROTECTED]
BartlebyScrivener wrote: > Hello, I'm new to python and trying to get records from an MSAccess > database using mxODBC. It works, but the output is not formatted the > way I want it. > > Here's the script: > > import mx.ODBC.Windows as odbc > > driv='DRIVER={Microsoft Access Driver (*.mdb)};DBQ=d:

mxODBC sql MSAccess

2005-11-21 Thread BartlebyScrivener
Hello, I'm new to python and trying to get records from an MSAccess database using mxODBC. It works, but the output is not formatted the way I want it. Here's the script: import mx.ODBC.Windows as odbc driv='DRIVER={Microsoft Access Driver (*.mdb)};DBQ=d:/Access Databases/Quotations2005' conn =