setFetchSize() in JDBC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gauri attal
    New Member
    • Aug 2007
    • 3

    setFetchSize() in JDBC

    Hi,

    Can anyone give me a small excutable example on setFetchSize() method in JDBC?

    When i am working with it,
    <<can not connect to the databasejava.sq l.SQLException: Invalid Fetch Size>>
    is the given error report. can u please help me out with a small example?

    Thank You,
    Gauri.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by Gauri attal
    Hi,

    Can anyone give me a small excutable example on setFetchSize() method in JDBC?

    When i am working with it,
    <<can not connect to the databasejava.sq l.SQLException: Invalid Fetch Size>>
    is the given error report. can u please help me out with a small example?

    Thank You,
    Gauri.
    Did you specify a fetch size < 0?

    kind regards,

    Jos

    Comment

    • Gauri attal
      New Member
      • Aug 2007
      • 3

      #3
      Originally posted by JosAH
      Did you specify a fetch size < 0?

      kind regards,

      Jos

      Hi,

      No, i dint specify fetch size <0..What ever be the size given, the same error, as said in the previous mail,is reported..

      ThankYou,
      Gauri.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by Gauri attal
        Hi,

        No, i dint specify fetch size <0..What ever be the size given, the same error, as said in the previous mail,is reported..

        ThankYou,
        Gauri.
        This sounds creepy; I understand that you didn't set any fetch size yourself?
        I suspect a configuration error somewhere or even a wrong jdbc driver ...
        Have you checked all that?

        kind regards,

        Jos

        Comment

        Working...