Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving FileStream from SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01517970
Message ID:
01521810
Views:
45
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform