[python-sybase] newbie problem
Laurent VASSEUR
vasseur at titus.u-strasbg.fr
Tue, 14 Jan 2003 15:50:10 +0100
I have the same problem with a simple select statement. I'm using the=20
sybase libraries.
Laurent
A 15:37 14/01/2003 +0100, vous avez =E9crit :
On Tue, 14 Jan 2003 09:43:50 +0100
Laurent VASSEUR <vasseur@titus.u-strasbg.fr> wrote:
> hi,
>
> I've just installed the Sybase module on solaris 2.7 /
> python 2.2. I tried the following program to test it, but
> it fails...
>
> #!/bin/env python
> import Sybase
> Sybase._ctx.debug =3D 1
> import sys
>
> db=3DSybase.connect('DB','USR', 'PWD', database=3D'test')
> c=3Ddb.cursor()
>
> db.begin()
> c.callproc('sp_help')
> db.commit()
>
> c.close ()
> db.close ()
> sys.exit()
>
(...)
Does it work with a simple SELECT statement? Or do you have
the problem only when calling callproc()? Are you using the
sybase libraries or freetds?
Peter