Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing binary files ni SQL Server binary fields
Message
From
20/06/2001 15:24:38
 
 
To
20/06/2001 14:36:04
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00521605
Message ID:
00521640
Views:
15
I haven't tried it myself, but what about something like:

s=FILETOSTR("WORDDOC.DOC")

UPDATE MYTABLE SET BINARYFIELD=s WHERE RECID=5

Cheers,
Peter

>Hi there!
>
>I'm just about to finish my first SQL-Server based app.
>
>I have a table on MS SQL Server where I need to store entire binary FILES (e.g. a Word Document) in a binary FIELD, but I can't figure out what syntax to use to load or retrieve that information.
>
>Could you give me a pointer as to what to do, e.g. where to look or what command to use? I can see that SQL Passthrough won't work, because I cannot use something like UPDATE MYTABLE SET BINARYFIELD=FILETOSTR("WORDDOC.DOC") WHERE RECID=5
>
>But that's really what I want to do
>
>Does anyone have any ideas as to what to do. I figure it needs an ADO object, but how???
>
>Thanks so much!
>Hermann Strijewski
>Clearwater, FL
Previous
Reply
Map
View

Click here to load this message in the networking platform