Is there any way to upload a file to a varbinary on SQL Server without writting a program to do it?
|
feedback
|
|
Looks like this might work for you... http://www.databasejournal.com/features/mssql/article.php/3632741/Upload-multiple-files-to-VarBinary-column-in-SQL-Server-2005.htm
| ||||
|
feedback
|
|
Yes, if you create a "holding" table with just a single varbinary or image column in it, you can use the bcp utility to upload directly into this table. You'll need to know the file size in bytes before you do this, as it's the answer to one of the prompts.
Replace -T with appropriate authentication information if necessary. Then answer the four prompts:
| |||
|
feedback
|
|
Following Sam's link I've came up with this destiled version:
I'm accepting Sam's answer because it sent me in the right direction, this code should be added to that answer but I don't have enough reputation yet. | |||
|
feedback
|