How to bring coordination between file system and database?
Posted
by Lock up
on Stack Overflow
See other posts from Stack Overflow
or by Lock up
Published on 2010-03-26T16:28:26Z
Indexed on
2010/03/27
10:03 UTC
Read the original article
Hit count: 197
I am working on a online file management project. We are storing references on the database (sql server) and files data on the on file system.
We are facing a problem of coordination between file system and database while we are uploading a file and also in case of deleting a file. First we create a reference in the database or store files on file system.
The problem is that if I create a reference in the database first and then store a file on file system, but while storing files on the file system any type of error occur, then the reference for that file is created in the database but no file data exist on the file system.
Please give me some solution how to deal with such situation. I am badly in need of it.
This case happens also while we deleting a file?
© Stack Overflow or respective owner