>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement