SQL Server >> Is storing images in sql really that bad now?

by Jake » Thu, 16 Sep 2004 21:59:17 GMT

Hello,

I have seen a lot of articles and comments trying to disuade people
from storing photos images in sql2k and msde. My question is why?
Microsoft's sharepoint technology stores all .doc, .xls, .pdf, .jpg, etc.
into sql2k or msde depending on what backend you are using. Here is the
issue we are running into and would appreciate suggestions. We have an
application that is running on a windows 2000 tablet pc. Currently the app
(coded in vb.net) takes data from the access database (that resides on the
tablet pc) and moves it to our Sql Server in the office via the internet as
some staff are in different states. The application also transfers .jpg and
.tif files between the server and the client(currently stored as files). We
are having issues with scalability due to the amount of growth we have been
experiencing. Two years ago there was about 15 users running this
application, now there are over 60, with growth expected to continue. My
question is can MSDE help solve this problem. I was thinking that if I use
MSDE on the client and tweak the application to store the .jpg and .tif
files into the MSDE then I could have SQL manage the replication. I know
there is a limitation of 2 gigs on MSDE and we would make a temp db that the
clients would replicate to and move the data up to the live database thus
hopefully eliminating that issue. So basically with the amount of data we
are transferring can MSDE accomplish this with Sql Server at the office,
thus eliminating our vb.net application? The average size for a .tif or .jpg
is between 200k and 3mb. Thanks in advance




SQL Server >> Is storing images in sql really that bad now?

by Andrew J. Kelly » Thu, 16 Sep 2004 22:23:50 GMT


There are always pro's and con's to this issue and it is never a generic yes
or no answer. It is certainly feasible to store the images in the database
and it sounds like off the top you are already set up to do this. Storing
them in the db does solve some issues such as having to give the user access
to the files themselves etc. MSDE sounds like a good alternative to what
you are doing now and with Yukon and SQL Express the limit goes to 4GB.

--
Andrew J. Kelly SQL MVP




as
and
We
been
the
.jpg





SQL Server >> Is storing images in sql really that bad now?

by Adrian Edwards » Fri, 17 Sep 2004 22:04:23 GMT

The only issues I can see are MSDE works great with a couple of
connections but is deliberately set to degrade with more than 5-8 users.

Replication may be an issue, transactional replication between SQL
Server and MSDE is not a problem but I'm not sure the other way. Merge
replication does no work with MSDE.

Adrian





Is storing images in sql really that bad now?

by Jake » Fri, 17 Sep 2004 22:18:35 GMT

Adrian,

Will the new msde 2005 be able to handle merge replication? I tested
Merge (granted it was justa couple of rows of data) between MSDE and sql2k
and it worked. I don't want to spend a lot of time testing this if someone
knows for sure that merge replication will not work.

Jake




people
etc.
app
the
as
and
We
been
use
the
thus
we
.jpg




Is storing images in sql really that bad now?

by Adrian Edwards » Fri, 17 Sep 2004 23:44:28 GMT

I could be wrong but I don't think so. Merge Replication is available in
Enterprise SQL but other versions, e.g. its a licensing not technical
issue, MSDE is free!

Adrian








Similar Threads

1. SQL DELETE - I am having a bad day

Hello, Anders!
Thanks for the info.
-- 
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8


2. where EXISTS / NOT EXISTS do not work (I am really pannic) - SQL Server

3. a really bad ordering problem

I've been on this one for more than a month.  I've tried it countless 
different ways, but it's just not happening.  It's an ordering problem.  

I want this:         20 2Yr, 45 3Yr, 3 5Yr, 42 10Yr, 2 30Yr
I'm getting this:   28 5Yr, 9 2Yr, 8 10Yr, 2 30Yr, 45 3Yr

at one time I had them ordered properly, but now for some reason they're not 
ordered sequentially.  It's pretty much always 5Yr, then 2Yr, 3Yr and 10Yr.  

this project is 2-fold.  first i do a ton of calculations and insert the 
results of which  into a stats table.  then i report from that stats table.  

the relevant portion of the insert is this:
 
 CASE 
WHEN LEFT(symbol,3)='USM' THEN '2Yr,' WHEN LEFT(symbol,3)='USL' THEN '3Yr,' 
WHEN LEFT(symbol,3)='USN' THEN '5Yr,' WHEN LEFT(symbol,3)='USO' THEN '10Yr' 
WHEN LEFT(symbol,3)='USP' THEN '30Yr' END,

i make a couple declarations in the reporting proc:

DECLARE @termsBBBB varchar(150), @delimiter char,@termsEEEE varchar(150)
SET @delimiter = ','
 
SELECT @termsBBBB = CAST(countOftrades as varchar)+ ' ' + term + 
COALESCE(@termsBBBB , '') 
FROM (SELECT Sum(countOftrades) as countOfTrades, term from  dbo.stats2 
WHERE destination  = 'BBBB' group by term) a
 
SELECT @termsEEEE = CAST(countOftrades as varchar)+ ' ' + term + 
COALESCE(@termsEEEE , '') 
FROM (SELECT Sum(countOftrades) as countOfTrades, term from  dbo.stats2 
WHERE destination  = 'EEEE' group by term) a
 
and i pull it out in the report proc like this:

SELECT Destination as 
EndPoint,RTRIM(LEFT(CONVERT(char(16),CAST(SUM(countOfTrades) AS 
MONEY),1),13)) AS '   #Trades',
RTRIM(LEFT(CONVERT(char(16),CAST(SUM(Volume) AS MONEY),1),13)) AS 'Volume   ',
RIGHT('      '+ISNULL (CONVERT(varchar(20),SUM(TotalUSD),1),0.00),20) AS 
'Total $   ',+LTRIM(RTRIM(@termsBBBB)) AS Terms
from dbo.stats2 WHERE destination in ('BBBB')
group by destination

UNION

SELECT Destination as 
EndPoint,RTRIM(LEFT(CONVERT(char(16),CAST(SUM(countOfTrades) AS 
MONEY),1),13)) AS '   #Trades',+'   '+
RTRIM(LEFT(CONVERT(char(16),CAST(SUM(Volume) AS MONEY),1),13)) AS 'Volume   
',+'   '+
RIGHT('      '+ISNULL (CONVERT(varchar(20),SUM(TotalUSD),1),0.00),20) AS 
'Total $   ',+'   '+LTRIM(RTRIM(@termsEEEE)) AS Terms
from dbo.stats2 WHERE destination in ('EEEE')
group by destination

is anybody able to direct me as to why I'm not ordering the values 
sequentially?

--Lynn

4. Are Cursors in Triggers really bad? - SQL Server

5. hi i am very bad boy

i am learning Newsgroups



6. View Jpg image stored in a MS SQL Image field - Access Forms Programming

7. Display an image whos image path is stored in a SQL DB

I'm fairly new to asp.net.  What is the syntax for the string to pull and 
image path from a DB and display that image based on the given path?  I am 
trying to stay away from actually storing images in my DB and want to just 
store their paths there.  I'd appreciate any help anyone can provide.

Thanks.
JESTER

8. I am in NewJersy and i am willing tolearn T-Sql Programming - SQL Server