Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    8

    Unanswered: Probelm Connecting to Sybase Database frrom J2EE Web Application

    Hi,
    I get the following error when I connect to the Sybase database from my web-app. I put Set chained off in the procedure and nothing happenend. There seems to be a probelm in the Java Side.

    Exception :
    ------------

    com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'p_inter_status_dz' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.

    Note: My Stored Procedure call is surrounded with a try/catch/finally, always closing the connection in the finally.

    Regards,
    Hemanth
    http://www.javaprogrammingworld.com

  2. #2
    Join Date
    Jan 2003
    Location
    Geneva, Switzerland
    Posts
    353
    See the sp_procxmode system stored proc to mark the procedure as working in CHAINED mode.

    Michael

  3. #3
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    8

    Thank you

    Thanks a Lot. It helped me..

    Regards,
    Hemanth
    http://www.java-swing-tutorial.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •