Which data-type for storing images and documents in SQL Server 2005

后端 未结 4 418
逝去的感伤
逝去的感伤 2021-01-12 06:42

I must extend an existing .net-Application to store images and documents (mostly pdf\'s) in a SQL Server 2005 database.

Which SQL Server datatype is used best for s

4条回答
  •  無奈伤痛
    2021-01-12 07:37

    To answer the other part of your question, if you are storing binary data in a database, don't mix the data in a table with other fields. You probably won't be doing any searching or indexing on the binary data, and access to any metadata will be slowed down by the size of the table. Keep just the images/files in a separate table.

    Though I can think of good reasons to keep files in a SQL server database (for example: not a web app), what @JonH says as well: keep them in the file system unless you have a compelling reason not to.

提交回复
热议问题