Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get around String Literal length limit

Status
Not open for further replies.

yert33

Programmer
Feb 19, 2002
255
US
I'm using Visual FoxPro to read/write to a Notes database via the NotesSQL ODBC driver. Works great for the most part. But when I try to pass a string literal over 254 bytes long I get an error: "[Lotus][ODBC Lotus Notes]String literal limit is 254 bytes."
Lotus Developer Domain forum says: "the max limit of a string literal (the characters between the open and close quotes) when used in a sql statement cannot exceed 254 characters. If you need more characters, then you must use bound parameters instead of a string literal."

What are bound parameters? How do you use them?

TIA,
Trey
 
I was / will be running into this problem in a short while on a page I have been working on. I want to have a comment box but can't write more than 254 char into the VFP database character filed. I was thinking about Just have some vbscript break up the text into chucks and putting it into multiple fileds. What do you think?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top