When should I choose one or the other? What are the implications regarding space and (full-text) indexing?
BTW: I’m currently using SQL Server 2005 planing to upgrade to 2008 in the following months.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The new (max) fields make it a lot easier to deal with the data from .NET code. With
varbinary(max), you simply set the value of aSqlParameterto a byte array and you are done. WIth the image field, you need to write a few hundred lines of code to stream the data into and out of the field.Also, the image/text fields are deprecated in favor of
varbinary(max)andvarchar(max), and future versions of Sql Server will discontinue support for them.