SQL Server Performance Forum – Threads Archive
Blob objectsHello, friends!
I have a question….. I’m building currently a database that have to save Blob objects
(big text documents).
I would like to know what is a better option: to save a links to the objects in the DB or to keep the objects?
Have someone any documents about it? any recommendations?
Thank you very much in advance.
Hi ya, it depends on what you are going to do with the text documents. advantages of BLOBs, it makes disaster recovery easy, since restoring the database will automatically restore the documents to the same consistent state. Security is all done in one place and access is easily controlled via roles/stored procedures/etc. disadvantages, they tend to be slower to save/retrieve than files. They must be retrieved to allow them to be used by most applications, whereas files can be opened directly. Programming languages always seem to struggle with BLOBs. BLOBS are limited to 2GB I’d say that most of the time storing the files as files and using a reference in the database is the way to go, but then there may be reasons why storing as files is better for you Cheers
I would second Twan on the suggestion to store data as links rather than storing in database. Gaurav
Man thrives, oddly enough, only in the presence of a challenging environment- L. Ron Hubbard
The views expressed here are those of the author and no one else. There are no warranties as to the reliability or accuracy of anything presented here.
If you had the space, you could also put an indicator on each file link to signify if file has been copied to a secondary location. Copy all the files to a second location in the same increments as your transactional backups and change the flag.<br /><br />Just an idea. [<img src=’/community/emoticons/emotion-2.gif’ alt=’‘ />]<br /><br />MeanOldDBA<br />[email protected]<br /><br />When life gives you a lemon, fire the DBA.