Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

what is the datatype to store attachments in Sql Server 2008.

Thanks,
Balu
Posted

USe varbinary(max)
 
Share this answer
 
Comments
Amir Mahfoozi 7-Jan-12 7:28am    
+5
Based on the type and size of file.

It can be

varbinary(n) stores only 8000 bytes
varbinary(max) stores 2 GB
Image stores stores 2,147,483,647 bytes.
BLOBs

Thanks
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900