dickylam
IS-IT--Management
- Jun 24, 2001
- 86
I have a problem. Since a single command line cannot exceed 256 chars. All the time when I execute some SQL command to SQL server 7.0 will appear problem.
Example
x = space(200)
store "insert dbtable (fieldx) values ('&x')" to sqlcmd
store sqlprepare(sqldatabasehandle,[&sqlcmd] to zresult
store sqlexec(sqldatabasehandle) to zresult2
the above result will be ok.
BUT, if I change variable x into space(500), then I will get an error. Therefore this will limit to me to allow user to input a memo like editbox and save back to SQL table.
Anybody know how to solve it.
Much Thanks.
Example
x = space(200)
store "insert dbtable (fieldx) values ('&x')" to sqlcmd
store sqlprepare(sqldatabasehandle,[&sqlcmd] to zresult
store sqlexec(sqldatabasehandle) to zresult2
the above result will be ok.
BUT, if I change variable x into space(500), then I will get an error. Therefore this will limit to me to allow user to input a memo like editbox and save back to SQL table.
Anybody know how to solve it.
Much Thanks.