﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Best way to store photos / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 06:16:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Best way to store photos</title><link>http://www.sqlservercentral.com/Forums/Topic1392478-391-1.aspx</link><description>I would recommend the file system and store the path in the SQL Server.  Ultimate flexibility and easiest to code.</description><pubDate>Tue, 04 Dec 2012 07:58:47 GMT</pubDate><dc:creator>DiverKas</dc:creator></item><item><title>RE: Best way to store photos</title><link>http://www.sqlservercentral.com/Forums/Topic1392478-391-1.aspx</link><description>There are basically 3 ways to handle storing binaries with sql.1) Store the files on disc in a folder and then store the file name in sql. You basically just use sql as a way to track which file belongs to a given row in the table.2) Store the actual file in a varbinary(max) column. This can be a bit unwieldy as you get large numbers of files due to page and index fragmentation. You also have to be careful not to select that column with every day queries. I have done this in the past by having a table that holds nothing but the image, an identity and a foreign key.3) Filestream. Not sure this is what you want given the small size of the files you are working with. You read more about this option here. [url=http://msdn.microsoft.com/en-us/library/bb933993%28v=sql.105%29.aspx]http://msdn.microsoft.com/en-us/library/bb933993%28v=sql.105%29.aspx[/url]</description><pubDate>Tue, 04 Dec 2012 07:43:25 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>Best way to store photos</title><link>http://www.sqlservercentral.com/Forums/Topic1392478-391-1.aspx</link><description>Helloour app is used for plant inspection.  Each inspection file will have about 30 photos.  We resize photos so each weights about 60 kWe evaluate 25 000 inspection file per year.   So 45 gigs of photos in the database after one year and 90 gigs after two yearsHow to manage this efficiently in SQL Server? (performance...backup..etc)thanksMartin</description><pubDate>Tue, 04 Dec 2012 07:26:14 GMT</pubDate><dc:creator>dubem1-878067</dc:creator></item></channel></rss>