Fw: Query regarding Python sybase module

Discussion in 'Python' started by srinivasan srinivas, Mar 25, 2009.

  1. ----- Forwarded Message ----
    From: srinivasan srinivas <>
    To:
    Sent: Tuesday, 24 March, 2009 7:42:35 PM
    Subject: Re: Query regarding Python sybase module

    NO. I tried with what u have mentioned in the previous update.
    But it gave only one result set.

    Thanks,
    Srini



    ----- Original Message ----
    From: "" <>
    To: srinivasan srinivas <>
    Cc:
    Sent: Tuesday, 24 March, 2009 6:40:37 PM
    Subject: Re: Query regarding Python sybase module

        Srini> Does Sybase Python driver module implement multiple result sets
        Srini> from a single command?

    I've used it to get multiple result sets from stored procedures, so I guess
    the answer would be "yes".  Something like this:

        >>> params = curs.callproc('stored_procedure', params)
        >>> while True:
        ...  rows = curs.fetchall()
        ...  print rows
        ...  if not curs.nextset():
        ...    break

    --
    Skip Montanaro - - http://www.smontanaro.net/



          Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/



    Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/
     
    srinivasan srinivas, Mar 25, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Holden
    Replies:
    0
    Views:
    485
    Steve Holden
    Apr 6, 2007
  2. srinivasan srinivas

    Query regarding Python sybase module

    srinivasan srinivas, Mar 24, 2009, in forum: Python
    Replies:
    1
    Views:
    538
    Kushal Kumaran
    Mar 24, 2009
  3. Pravin
    Replies:
    3
    Views:
    697
    alex23
    Sep 11, 2009
  4. gopalmore007
    Replies:
    0
    Views:
    445
    gopalmore007
    Sep 11, 2009
  5. Replies:
    1
    Views:
    96
Loading...

Share This Page