Re: Mange Large file in the database



With a big amount of data that is uploaded to SQL server from the Web you
will face 2 problems...

1. ASP.NET does not allow to upload files bigger than 4 megabytes by
default.

Solution: Check out this article for details
http://msdn2.microsoft.com/en-us/library/aa479405.aspx
OR you might need to use non .NET way to do it with some third party
component.

2. MS SQL can handle huge amount of data. The problem to get that data in
there (into database). The problem is transaction log. It grows enormously
when you do repeated INSERT many thousand times. And MS SQL needs to
reallocate it constantly which is very costly and time consuming...

Solution: You need to do research on "bulk copy", specify correct BACKUP
model for your database.
You can use BULK INSERT or bcp.exe command.
bcp.exe allows you to have SQL server on separate machine than uploaded
file.

The way I did it is that I would take a file, make csv file out of it with
predefined columns and run bcp.exe to get it into SQL server.


PS: I heard that .NET 3.0 (or 3.5) supports bulk operation so you can do it
yourself instead of using bcp.exe

George.




"Husam" <Husam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8F41E29C-33B3-4C68-856B-3FAA400EB098@xxxxxxxxxxxxxxxx
Hi EveryBody:

I have a web application made by ASP.Net 2.0 and vb.net, the purpose of
this
project is to upload data from clinte machine and save these data to SQL
2005
database and when the clinte see his or her files in his member area in my
web application he can retrive his or her data just by clicking them and
the
download will be start.

When I experiance my web application with a lot of people its work fine
for
small data size 5 MB or less but when I delt with large data 100 MB or 1
GB
here is a problem.

The problem I face it with upload and download was SystemOut Of Memory.
Some body toled me that If I had data set with 100 mB this is design
problem.

So I do not want it to be so long Is there some body can Help me and
Inform
me How can I bulid databsae and data set that can Mange large file let us
assume
2 GB?

Any help will be appreciated

regard's

HusaM


.



Relevant Pages

  • Re: what to choose
    ... > I have a general question concerning FOXPRO 9.0 and SQL Server 2003. ... > He will have about 10 computers working simultanously on the database. ... > think that foxpro 9.0 will manage such an amount of data in multi computer ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Uploading documents fail - SharePoint Services/Remote SQL 2k Server
    ... Mike Walsh, Helsinki, Finland ... was unable to upload files larger than 5Mb, ... solve it by allocating more memory for SQL server. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ASPNET hosting problem
    ... Do I have to upload the .cs files and the .resx files?Also the .sln file, ... > need to change it to point to the Sql Server accessible by your host. ... > load those too. ... > If you have to set up the database, it may be best to speak to your ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Save Files from my desktop to SQL Server
    ... The program does nothing more then to show a FileOpenDialog and add the choosen file to the SQL server. ... The problem we have currently is users have to use the web form to upload the files to database. ...
    (microsoft.public.dotnet.languages.vb)
  • ASP.NET Configuration tool missing from menu
    ... I've uploaded my club site files, ... my DB is in SQL Server on the web host... ... table is empty so I have no one to login to the website with. ... I have done the DB merge and website upload from a different computer ...
    (microsoft.public.dotnet.framework.aspnet)