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 2000 Forums
 SQL Server Development (2000)
 Database Architecture Help Needed!

Author  Topic 

azamsharp
Posting Yak Master

201 Posts

Posted - 2005-11-09 : 15:13:39
Hi,

Okay here is a scenario. I have a zip file which contains thousands of images and html files (1000 images). I unzip it using Asp.net (this is done) and now I need to save it in the database. Since each zip file has thousands of images it creates thousands of rows for a single zip since I am storing the image names in the database table so I can reconize that which zip file contain what images. So its something like this:

ZipFileID ImageName
1 ab1.gif
1 ab2.gif
1 ab3.gid
. ..
. ....
. ....
. ....

and so on till
1000 ab1000.gif.

Now this is extremely bad since its creating 1000 rows for a single zip file. What if I have 100 zip files It will be a caos.

Any idea how I can improve on this situation?


Mohammad Azam
www.azamsharp.net

nr
SQLTeam MVY

12543 Posts

Posted - 2005-11-09 : 15:23:15
It shouldn't be a problem. The database should be able to handle that amount of data.
Any other structure would be likely to cause problems.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -