I'm creating a form in infopath that is hooked up to an sql table. I would like to have a field for an attachment in the table. What datatype is an attachment file.
what version of SQL Server are you using?
If you are using SQL Server 2005 I would recomend using a VARCHAR(MAX). This datatype can hold up to 2 gb of data.
- Paul
- If at first you don't succeed, find out if the loser gets anything.
Can't help you with that since I would never store such stuff in the DB
I always store the filepath to the file that way my backups are smaller and I can have the file on 8 different webservers instead of 8 webservers hitting the DB to return this file
and BLOBs are a pain in the neck to deal with since you can not use regular UPDATE statemensts but you have to use UPDATETEXT with TEXTPTR etc etc etc
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.