Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPOLEDB adds chr(0) at end of memos
Message
 
To
10/02/2011 10:08:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01499632
Message ID:
01499664
Views:
51
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform