CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Posts
    2

    combine resultset

    Hello
    I have a long statement so when i execute it i get an exception :
    "Statement length exceeds maximum "
    the statement is in this format : select from table where clauseA or clauseb or ...

    i wonder if there is a way to overcome on the length restriction ?

    in case that there is no way and i need to split the query i wonder if there is any solution to union all the resultset that i get into one resultset ?

    thank you a lot.

  2. #2
    Join Date
    Sep 2004
    Posts
    247

    Re: combine resultset

    Is it possible to run your query either through a stored procedure or view on the database? That way you wouldn't need to have such a long statement poassed to JDBC.

  3. #3
    Join Date
    May 2005
    Posts
    2

    but the statement is dynamic

    but the statement is dynamic

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured