April 4, 2009 at 10:34 am
Can we store files like pdf in varchar(max) or nvarchar(max) datatype? Is there any other datatype that can be used to store the files?
April 4, 2009 at 11:30 am
I would imagine that IMAGE or VARBINARY would do the trick. See Books Online for the details.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 4, 2009 at 2:51 pm
I would suggest VARBINARY(MAX) because IMAGE is marked as deprecated and will be removed in future versions of SQL Server (I still don't completely understand why...).
If you use SQL Server 2008 you can also use FILESTREAM which was (also) introduced for WinFS (which is dead).
Greets
Flo
April 6, 2009 at 9:17 am
There is one intresting article on VARBINARY vs FILESTREAM datatypes.
http://coolthingoftheday.blogspot.com/2009/01/sql-server-varbinary-vs-filestream-code.html
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply