Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFPOLEDB adds chr(0) at end of memos
Message
 
À
10/02/2011 10:08:37
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01499632
Message ID:
01499664
Vues:
52
>Experimenting with pulling dbfs into SQL database, via select * from openrowset(...), I've found that ALL of the memo fields have been migrated with an extra chr(0) in the end.
>
>Googling a subject where your keywords are "null", "null terminated string", "vfpoledb" and such gives an incredible amount of fun, seeing how many completely unrelated things pop up, and an even larger amount of frustration.
>
>So... the question: did anyone encounter this before? If not, is there a good place with information on how VFPOLEDB can be configured? Or, at least, what can go into the provider string to change this behavior?


If memo or char field contain CHR(0), the field type on SQL must be binary and in query you must convert memo/char to image(varbinary(max))/varbinary.

MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform