[DB-SIG] Accessing MSSQL from Python

Dave Cole djc@object-craft.com.au
29 Aug 2002 23:28:05 +1000

>>>>> "Marcos" =3D=3D Marcos S=E1nchez Provencio <msanchez@grupoburke.com> =

Marcos> All right! Now it is built and it connects fine. I get
Marcos> Violaci=F3n de segmento (core dumped) when exiting Python,
Marcos> though.

One thing worth trying when things go bad is to turn on the debugging
output.  It helps work out where the problem might be.

Do this:

import Sybase
Sybase._ctx.debug =3D 1

Sybase.py directs the debug output to sys.stderr but you can specify a
different destination by doing this:

import Sybase
Sybase._ctx.debug =3D 1
Sybase.set_debug(open('afile.log', 'w'))

The output will mean something to people familiar with the Sybase CT

- Dave