[python-sybase] newbie problem

hopfgartner hopfgartner at rolmail.net
Tue, 14 Jan 2003 15:37:39 +0100


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 = 1
> import sys
> 
> db=Sybase.connect('DB','USR', 'PWD', database='test')
> c=db.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