Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 storing images

Author  Topic 

Arun.G
Yak Posting Veteran

81 Posts

Posted - 2010-06-07 : 07:21:10
In our databases v want to store image

as my opinion storing location(path) fo the image is better than storing image in database

but development team want to store images itself in db

how to do it efficiently
which datatype is very opt for that

only image datatype is enough?

how to call that image in sqlserver 2008 database?

pk_bohra
Master Smack Fu Yak Hacker

1182 Posts

Posted - 2010-06-07 : 07:43:29
Some links to start with:

http://www.codeproject.com/KB/database/Store_images_in_SQL_Serve.aspx

http://weblogs.sqlteam.com/peterl/archive/2007/09/26/Insert-binary-data-like-images-into-SQL-Server-without-front-end.aspx


Regards,
Bohra

I am here to learn from Masters and help new bees in learning.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-06-07 : 08:41:15
Has the opinion on this changed then?

If you need security for images, or you need to move Data AND Images to different locations, or you must have ATOMic update of Images and associated data ... THEN storing images in the DB makes sense.

If you have a web site storing images in the system slows down rendering for the user and images are unlikely to be cached on user's PC.

Images in the database change infrequently but hugely bloat the size of the database, increase the backups (with no ability to set up a hierarchical backup plan, as you could do with files in folder).

The increase in database size means that moving database to DEV etc. is also made more cumbersome / slower / etc.
Go to Top of Page
   

- Advertisement -