Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! I'm working in a vb6 app with SQL Server 2008. This app is a kind of CRM, so we have a entity for the customer and we would like to attach some files to each customer (ex: docx, xlsx, jpeg, and so on). The app will be accesed by several users and this files has to be available for all of the users. The first option I was thinking was storing the files directly in the database SQL in a byte field, but for obvious reasons I'm not convinced. Another option was to simply store the path of the file, but in this case the file may not be available for all users.
Could you give me your opinion about the best way to do this? I'll be very grateful!
Tks in advance and excuse my rusty english!

Cristian
Posted
Comments
Maciej Los 27-Dec-14 10:19am    
Why vb6? Who wants to use it anymore? I'd suggest you to write this app with any .net language: vb.net, c#, etc.
Ing. Cristian Marucci 27-Dec-14 19:00pm    
Believe me, I don't want to use it... but my client needs to do it in vb6 cause is a new functionality in an existing app...

1 solution

It depends on many factors...
As per my experience, i'd suggest to store files outside the database, but the path to them in a database.
 
Share this answer
 
Comments
Ing. Cristian Marucci 27-Dec-14 19:06pm    
Tks for your reply! Would you store a path to a shared folder in the network for example?
Maciej Los 28-Dec-14 7:38am    
Yeah...

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