Database document in sqlserver varbinary don't work

I have big problem with the database document field in sql server (while in mysql this does not pose any problem longblob field does the job)
in sqlserver I use the varbinary (max) field the file is added to the database but it is degraded when we then want to click on it the pdf file is no longer the upload file. Have you encountered this problem?
In scriptcase can the multiupload field go find another database to avoid this?