Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Stored Procedure
Message
 
 
À
26/07/2010 18:35:18
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01473624
Message ID:
01474036
Vues:
29
>>Run without parameters (with hardcoded values) to make sure it works without parameters. It still looks like a bug or something gone wrong.
>
>I agree. Later in the program this queries works fine.
>There is something going on the the Where OR clause that must be the issue
>
> lcSQLCMD=[select ljob, matno, unitcost, burden, uomcost, uom, matquant, spoiled];
> +[ FROM bbmatdc ];
> +[ WHERE bbmatdc.ljob=?lcljob ];
> +[ AND bbmatdc.costdate between ?ldstartdate and ?ldenddate]

Can you explain the purpose of that query? May be you can re-think it and do without OR? Alternatively, you can re-write it using UNION instead of OR.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform