SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error saving Excel document in varbinary(max) field


Error saving Excel document in varbinary(max) field

Author
Message
anoopk4u
anoopk4u
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 4
Hello,

We have a web site in asp.net where users can upload and save various documents.

These are being stored in an SQL Server varbinary(max) field.

I have issue where the insert fails for Excel spreadsheets but works for other document types including pdf, Word, zip and text files etc.


I have Exception handling in my stored proc but I get no exception in Catch block.

This works perfectly on Dev/Test box and happens only on production only for Excel files.


Appreciate your valuable suggestions.


Thanks,
Anoop
bonniereed346
bonniereed346
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 3
anoopk4u (2/25/2014)
Hello,

We have a web site in asp.net where users can
upload and save various documents.

These are being stored in an SQL Server varbinary(max) field.

I have issue where the insert fails for
Excel spreadsheets but works for other document types including pdf, Word, zip and text files etc.


I have Exception handling in my stored proc but I get no exception in Catch block.

This works perfectly on Dev/Test box and happens only on production only for Excel files.


Appreciate your valuable suggestions.


Thanks,
Anoop



Do not sure whether following post can help you a little. :-)

http://stackoverflow.com/questions/11176066/how-do-i-insert-retrieve-excel-files-to-varbinarymax-column-in-sql-server-2008
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search