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
19/09/2004 14:15:23
 
 
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:
00943863
Vues:
20
Hi Sergey,

this is a MS SQL bug.

try this in SQL Analyzer:
SELECT
'ABC\
TEXT',
'ABC\'+'
TEXT'
It appear in VFP because:
- with a memo type VFP do a string substitution
- with a char type VFP do a ODBC parameter substitution
REPLACE memoField WITh 'A\'+chr(13)+chr(10)+'END'
SQLEXEC(h,'SELECT ?(memoField)') <= VFP send SELECT 'A\...
SQLEXEC(h,'SELECT ?SUBSTR(memoField,1)') <= VFP send SELECT 'A\...
SQLEXEC(h,'SELECT ?(memoField+[])') <= VFP send EXEC sp_sqlexecute 'SELECT @P1',...
This is a VFP bug ( cut the string when found a CHR(0)):
REPLACE memoField WITh 'A'+chr(0)
SQLEXEC(h,'SELECT ?(memoField)') <= VFP send SELECT 'A
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform