I want to store file like .doc, .pdf, .txt etc into database (MS-SQL Server). What shout be the attribute type to store document. And how I can store the file in DataBase.
You need the attribute type should be binary for the actual data. You'll probably want to store the extension(doc,pdf,txt) into a separate field, so you can tell the app what kind of file it is when you stream it back out.