Ask a Question related to Informix, Design and Development.
-
Taamial #1
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
-
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... -
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... -
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... -
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... -
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... -
Jonathan Leffler #2
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
-
Taamial #3
Re: A quote string exceeds 256 bytes
Jonathan Leffler <jleffler@earthlink.net> wrote in message news:<3F13A316.9000904@earthlink.net>...
Jonathan, thank you very much for your help. What still confuses me is> 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.
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



Reply With Quote

