The question is how long strings can be processed in VB. Did you try some small file?
I would recommend to copy the file to SQL Server and then import it to a table directly by following command:
INSERT INTO YourTable (YourVarBinaryColumn)
SELECT BulkColumn FROM OPENROWSET(BULK '<YourFileOnServer>', SINGLE_BLOB) t
Everything you have to do is pass the file name to your SP.
Main Topics
Browse All Topics





by: JagdishDevakuPosted on 2009-08-10 at 12:56:09ID: 25063460
hi,
Check the size of the pdf you are uploading...
"varbinary(max ) as datatype than file size must be less than or equal to 2 raise to 31 bytes which is maximum limit for varbinary type."
I dont suggest to store the files in database... rather than storing files save the filenames and path in that database and using this path call the files from the application... this will improve the performance of the database...
for more info... http://blogs.aspcode.net/a rchive/200 6/09/04/2. aspx