what is the datatype to store all type of data(image,binary.....) into database column

  • hi,

    I have one document with full of data how to store this document in database table column.

    which datatype I can take to insert data in data table.

    Thanks
    Dastagiri.D

  • hey what i think is you have variable type of data in your document. you definately need to select proper data type for data. if you have numeric value then select numeric or int whatever suits you. but if you want character data type with support for unicode then you should opt for nvarchar data type.

    Also if you are using sql server 2005 and if you can format your document to XML format then you can use XML data type which wud directly save your file into single column.

    This is the best option for saving the data.

  • Can you provide some more details? Are you trying to store a document (word, pdf, etc...)? If you are attempting to store a document you need to use the varbinary datatype. You should do some research on storing blobs in SQL Server as it is usually not the best choice for large documents.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply