Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving FileStream from SQL Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
MS SQL Server
Divers
Thread ID:
01517970
Message ID:
01521810
Vues:
44
>Frank,
>
>It's been a little while but here is the statement that I've used in VFP to store a JPG file using FileStream -
>
>
lnRet = SQLEXEC(lnHandle, "UPDATE [alumnus] SET [ClassPhoto] = (SELECT BulkColumn FROM OPENROWSET(Bulk 'c:\temp\jpgs\MyFileName.jpg', SINGLE_BLOB) AS BLOB) WHERE AlumnusPK = 'MyPK'")
>
>HTH
>
>-Dan

Thanks, my co-worker was just asking me that, so I searched for your answer.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform