[python-sybase] callproc

glen@socrates.Berkeley.EDU glen at socrates.Berkeley.EDU
Wed, 10 Nov 2004 20:53:23 -0800 (PST)


I am just getting started with python-sybase, so I apologize 
in advance if this is a silly question.

So far I have not been able to run a stored procedure. When
I try the code snipped in the Sybase Module Manual, I get
this output:

==============================================================================
Traceback (most recent call last):
  File "SybaseTest.py", line 58, in ?
    c.callproc( 'sp_help' )
  File "/usr/local/lib/python2.3/site-packages/Sybase.py", line 653, in callproc
    self.description = fetcher.start(self.arraysize, out_params)
  File "/usr/local/lib/python2.3/site-packages/Sybase.py", line 338, in start
    return _FetchNow.start(self, arraysize)
  File "/usr/local/lib/python2.3/site-packages/Sybase.py", line 264, in start
    status, result = self._cmd.ct_results()
  File "/usr/local/lib/python2.3/site-packages/Sybase.py", line 161, in _servermsg_cb
    raise DatabaseError(_fmt_server(msg))
Sybase.DatabaseError: Level 10, State 1, Procedure sp_help, Line 170
==============================================================================

Can anyone suggest a solution to this, or someway that I can trace it to
get more meaningful information?  I am pretty sure that the problem is not
at line 170 of sp_help.

Thanks...

GLJ (glen@berkeley.edu)