[DB-SIG] Open up a Sybase .db file.

Magnus Lyckå magnus@thinkware.se
Tue, 30 Oct 2001 02:49:04 +0100


At 15:41 2001-10-29 -0800, Jason C. Leach wrote:
>Does anyone know if I can open a Sybase .db file from Python?

Sure, you can open ANY file from Python. Do you know how it's
organized?

Do I understand correctly that you want to read (or even write)
from / to a Sybase database without using a Sybase server?

I would think that is difficult. I don't think any of the
commercial database vendors publish those kinds of file formats,
and I imagine they will change from version to version. It is
probably possible to extract data after a lot of investigation,
but I would certainly not let anyone manipulate database files
I depended on like that.

I think the only sane way to manipulate a Sybase databse file is
by using a Sybase database. Python can speak to a Sybase server
using a Sybase DBI, see http://www.object-craft.com.au/projects/sybase/
or with mxODBC.


--
Magnus Lyckå, Thinkware AB
Älvans väg 99, SE-907 50 UMEÅ
tel 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se