Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am converting a access 2007 database to a asp.net + sql server 2008
database.
We are using the hyper link type field in access 2007.

What is the best practice to upload a file to a server and keeping track of it in a sql server 2008 for future download or view for picture?


Thanks
Posted

1 solution

There isn't really a best practice for this, it depends on a number of factors. What size are the files? Is it necessary to keep everything together? Do you need caching?

If the files are small, then storing them in the database may not be bad. If the files are going to be accessed frequently, such as images, then storing them on a server and storing the path in the database would be better. If you need to transport the application to different machines, then having everything in the database is easier to keep track of then many files.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900