>I've run into an issue of Fox not allowing me to write a sqlexec() command that is longer than 255 characters. With the excepting of creating multiple sqlexec() commands to complete the odbc call, is there anyway to do it in just one statement, regardless of length???
>
>Thanks,
Hi Shane,
What I've done to resolve this problem is to split the statement into several shorter strings. Then add all these shorter strings into 1 string that I will use in the actual SQLEXEC(). It worked, though I can't explain why.
csql1 = "SELECT ...."
csql2 = "FROM ...."
csql3 = "WHERE ..."
csqlstatement = csql1 + csql2 + csql3
nhandle = SQLEXEC(nhndl, csqlstatement, 'cursor')
HTH
Mike
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only