Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing Word documents in SQL Server
Message
From
06/11/2004 13:47:03
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00958440
Message ID:
00958869
Views:
13
Hi David,

We read the word documetn into memvar by using this:

w_retval = ""
w_fh = FOPEN(p_fn, 0)
IF w_fh >= 0
w_flen = FSEEK(w_fh, 0,2)
=FSEEK(w_fh, 0,0)
w_retval = FREAD(w_fh, w_flen)
=FCLOSE(w_fh)
ENDIF

We then save this back to a memo field in the Foxpro View of the SQL Table.

Then when we try and reopen the document it errors. I have read somewhere that binary information passed back to SQL from Foxpro was changed. In that SQL modified some of the characters passed back from Foxpro. My understanding is that the Image type doesnt do this just the text type.

I think I need to some more reading and maybe just try it out and see what happens.

Thanks for your input.

Jon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform