A quote string exceeds 256 bytes

Ask a Question related to Informix, Design and Development.

  1. #1

    Default A quote string exceeds 256 bytes

    Hi

    I use ODBC to connect database (Informix SQL-version 7.20.UD6 ) for my
    asp files. when save data with a long value, say, more than 300
    characters, some time the error "A quote string exceeds 256 bytes"
    happens.

    But when check the existing values for the field, some of them have
    got values with length of more than 300. Which means we do can save a
    long string, but why that error happens some times??

    I have been very confused by this problem, can somebody please help
    me?

    Many thanks in advance.
    Susan
    Taamial Guest

  2. Similar Questions and Discussions

    1. Sum exceeds 32,767
      I am trying to find the average call length in our database of support calls by using "SUM(calltime) AS time_total" and then dividing that by the...
    2. The illustration exceeds an implementation limit.
      I posted this yesterday on the windoze side... I worked for a good hour on a native .ai file in AIv9.0 in WinXP, saving often, then closed it and...
    3. Exceeds Excel Limits to convert datagrid
      Hi, I am using the standard code to convert a datagrid into an excel format. The only problem, that I face is how do i go about filling an...
    4. Single versus Double quote marks as string delimiters
      Hi All, I have heard other people say that PHP can parse double quoted strings (e.g., "Hello, World") faster than it can parse single quoted...
    5. Flash movie exceeds 256k and wont load
      im a newbie at this and need some help i have tried to make multiple flash movies for my site but if they are over about 250k they wont load. This...
  3. #2

    Default Re: A quote string exceeds 256 bytes

    Taamial wrote:
    > I use ODBC to connect database (Informix SQL-version 7.20.UD6 ) for my
    > asp files. when save data with a long value, say, more than 300
    > characters, some time the error "A quote string exceeds 256 bytes"
    > happens.
    >
    > But when check the existing values for the field, some of them have
    > got values with length of more than 300. Which means we do can save a
    > long string, but why that error happens some times??
    >
    > I have been very confused by this problem, can somebody please help
    > me?

    If you write INSERT INTO SomeTable VALUES("..."); then in the version
    you have, you get an error when the string is longer than 256
    characters. In some more recent server/CSDK (ODBC) versions, that
    limit has been lifted (95% confident). If you use host variables and
    the notation INSERT INTO SomeTable VALUES(?) and supply a long value
    as the host variable, your upper limit increases to 32 KB minus a few
    bytes. That's how the long strings get inserted successfully.


    --
    Jonathan Leffler #include <disclaimer.h>
    Email: [email]jleffler@earthlink.net[/email], [email]jleffler@us.ibm.com[/email]
    Guardian of DBD::Informix v2003.04 -- [url]http://dbi.perl.org/[/url]

    Jonathan Leffler Guest

  4. #3

    Default Re: A quote string exceeds 256 bytes

    Jonathan Leffler <jleffler@earthlink.net> wrote in message news:<3F13A316.9000904@earthlink.net>...
    > Taamial wrote:
    > > I use ODBC to connect database (Informix SQL-version 7.20.UD6 ) for my
    > > asp files. when save data with a long value, say, more than 300
    > > characters, some time the error "A quote string exceeds 256 bytes"
    > > happens.
    > >
    > > But when check the existing values for the field, some of them have
    > > got values with length of more than 300. Which means we do can save a
    > > long string, but why that error happens some times??
    > >
    > > I have been very confused by this problem, can somebody please help
    > > me?
    >
    >
    > If you write INSERT INTO SomeTable VALUES("..."); then in the version
    > you have, you get an error when the string is longer than 256
    > characters. In some more recent server/CSDK (ODBC) versions, that
    > limit has been lifted (95% confident). If you use host variables and
    > the notation INSERT INTO SomeTable VALUES(?) and supply a long value
    > as the host variable, your upper limit increases to 32 KB minus a few
    > bytes. That's how the long strings get inserted successfully.
    Jonathan, thank you very much for your help. What still confuses me is
    all the values were inserted through my ASP files. I designed the
    tables and the data type of that long value field is char(400).

    Anyway, I am going to add another field to let the two fields hold the
    long string.

    Thanks again
    Susan
    Taamial Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139