asp.net mvc 3 - A question regarding DB Images - -


a clarification, if have table has following fields....

productcategoryid, categoryname, image1, image2, image3, image4 , image5 have data types varbinary(max) , imagemimetype has data type varchar(50). difference if have 2 tables following...

(for simplicity sake) table 1 - productcategoryid, categoryname

table 2 - productcategoryid, imageid, image1, image2, image3, image4 image5 imagemimetype

i read somewhere images should placed in separate table performance & corruption prevention. or doesn't matter? there pro's & cons? using asp.net mvc3 c#, sql server 2008r2.

thanks

if images large, consider configuring database store files using filestream. may make big difference. having image columns in different tables won't matter then, because they'll stored in different filegroup. said, should normalize see fit. info on filestream:

http://msdn.microsoft.com/en-us/library/cc949109(v=sql.100).aspx http://www.aghausman.net/sql_server/configure-sql-server-2008-for-file-stream-2.html http://msdn.microsoft.com/en-us/library/ms144259.aspx


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -