September 13, 2011 at 3:18 pm
Hi, I have PDF files stored as nText in SQL Server 2005,
I have to transfer this data to SQL Server 2008 and have a reuquirement to display the PDF file from a web-application.
I first did a cast from ntext to nvarchar(max), then from nvarchar(max) to varbinary(max) ,
but when I try to display file using the .NET code, Acrobat gives error it is not a supported type file or has been damaged.
Any idea how can I convert nText data to varbinary(max)
September 13, 2011 at 4:04 pm
The following may give you some ideas:
http://stackoverflow.com/questions/640862/change-column-type-from-ntext-to-varbinarymax
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply