Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Pass Through
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00686711
Message ID:
00687315
Vues:
39
Hi Venelina,

You might try this:
testit = "Select * From wamtxt Where wamtxt.txtext LIKE %"+alltrim(mfrt2)+"%
SQLPREPARE(gnHandle1,testit, 'mySeeThis1a')
You can set step on and look at testit in the debugger to see if it appears to be parsed correctly. If so, then you can place the Select statement back into the sql prepare.

Also, you can place a variable in front of the sql statement to catch the return code and determine which code is returning a -1 like:

ret_val = SQLEXEC(gnHandle1)

sometime this helps to determine exactly where the error occurred but not always. The SQL prepare almost always return a 1, even though the database server returns a -1 when it tries to execute the SQL prepared parse.
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform