• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

JDBC Exception - Unexpected end of escape

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm receiving the exception [Microsoft][SQLServer 2000 Driver for JDBC]Unexpected end of escape, line 0 offset 0.

I'm using a CallableStatement to call a Stored Procedure with four parameters; Integer, String, String, Integer. I've checked what is being passed to the Statement to fill the parameters and the data looks fine. I've looked high and low and I can't find any information on what the cause of this exception may be. Does anyone have any experience with it? Thanks.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This error happened for me when I forgot to close a parentheses when creating
a CallableStatement:

CallableStatement sprocToRun = conn.prepareCall("{call msSproc(?,?}");

Notice the missing ')' after the parameters of the stored procedure.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic