Hello,
First, I would like to explain the application idea:
It is a Press Archive application that storing Articles and its Author(s), Subjects(s) and image files.
The application has a data entry form (Tab style) that enable the data entry person to do the following:
First Tab: Add/Update/Delete Article
Second Tab: Add Image Files Name
Third Tab: Add Author(s)
Fourth Tab: Add Subject(s)
There are 2 Problems:
1. Sometimes I have duplicate Article ID
2. When someone adds a subject it appears in other users list of subject!!!
Database Tables:
Ar / Subjects / Authors / ArSubject (Link between Ar and Subjects) / ArAuthor (Link between Ar and Authors)
These 2 problems happen when there are 2 or more operators on the system.
Application Language: Classic ASP / MS SQL Server 2005.
My Gues:
That there is a problem happen when multi user try to Add/update the same table
For example:
When you add subject (it is done on SQL as SP)
1. Check for Subject in subject table
--> If exsists: get SubID
--> Check if it is exsists in ArSubject and if not add a record to link it to Ar (ArID,SubID)
--> If not: add it and get SubID
--> add a record in (ArSubject) to link them
Please note:
ArID, SubID,AuthID,... not autonumber
Thank you for your help.
Open in new window