From: hopfgartner <hop...@ro...> - 2003-01-15 09:37:44
|
On Tue, 14 Jan 2003 09:43:50 +0100 Laurent VASSEUR <va...@ti...> 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 |