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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to INSERT string literal > 254 chars?

Status
Not open for further replies.

yert33

Programmer
Feb 19, 2002
255
US
Trying to INSERT a string but if the length is greater than 254 I get an abend. Someone else suggested using bounded parameters to pass the text, but didn't tell me how to do that.
Any suggestions?

Here's the code (Using Visual FoxPro to run the SQL statement) stripped to show just the field in question:

mcomm = "INSERT INTO Main (comment) VALUES('mcomment')
mexec = SQLEXEC(gnConnHandle, mcomm)

If mcomment is > 254 I get the blowout.

TIA!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top