Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing binary files ni SQL Server binary fields
Message
De
20/06/2001 15:24:38
 
 
À
20/06/2001 14:36:04
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00521605
Message ID:
00521640
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform