Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update a text field of SQL Server with VFP memo f
Message
De
21/09/2004 05:05:07
 
 
À
20/09/2004 15:49:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00943525
Message ID:
00944441
Vues:
19

This doesn't look like a Visual FoxPro BUG. Visual FoxPro does pass values from MEMO fields a little bit different, but it doesn't do string substitution as Fabio claims.


Why write you this?

I have not never written that VFP changes the replaced value,
I have written that VFP uses two various ways to replace the parameter.

When VFP replaces a VFP memo parameter ,
it executes a substitution of the parameter with the value of the parameter within
the original SQL string
, and it sendes it the commando exactly.

Explain with code:
SQLEXEC(H,"SELECT ?vfp.amemoexpression")
vfp send this:
SQLEXEC(H,STRTRAN("SELECT ?vfp.amemoexpression","?vfp.amemoexpression","'"+vfp.amemoexpression+"'"))
When the VFP parameter is of type "C",
VFP changes the command to "EXEC sp_sqlexecute.." with a parameter @P1 and send this SQL parameter string; the expression value is send with the ODBC parameter binding.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform