S
Stewart Saathoff
Hello,
I have a problem and I am not sure but it may be related to the way the system caches information. I have a web service that retrieves data from a database. The select statement is quite simple and I will include it below:
SELECT departments.department, employees.clockedin, employees.FName, [time].ireason, [time].oreason, [time].oDate
FROM ((departments INNER JOIN employees ON departments.departmentid = employees.departmentid)
INNER JOIN [time] ON employees.employeeid = [time].employee)
WHERE [time].idate=(SELECT max(idate) from [time] where employee=employees.employeeid)
ORDER BY employees.FName
The problem is this. When I retrieve the records in the database, the dataset is generated like its supposed to. (The most recent date record is retrieved.) If I use the application after I make some mods to the records, it appears to append new records rather than re-running a fresh query.
Here is the code for my Web Method:
cn.Open()
DsEmpStatus1.Clear()
Me.daEmpStatus.Fill(DsEmpStatus1.employees)
cn.Close()
cn.Dispose()
Return DsEmpStatus1
I have a problem and I am not sure but it may be related to the way the system caches information. I have a web service that retrieves data from a database. The select statement is quite simple and I will include it below:
SELECT departments.department, employees.clockedin, employees.FName, [time].ireason, [time].oreason, [time].oDate
FROM ((departments INNER JOIN employees ON departments.departmentid = employees.departmentid)
INNER JOIN [time] ON employees.employeeid = [time].employee)
WHERE [time].idate=(SELECT max(idate) from [time] where employee=employees.employeeid)
ORDER BY employees.FName
The problem is this. When I retrieve the records in the database, the dataset is generated like its supposed to. (The most recent date record is retrieved.) If I use the application after I make some mods to the records, it appears to append new records rather than re-running a fresh query.
Here is the code for my Web Method:
cn.Open()
DsEmpStatus1.Clear()
Me.daEmpStatus.Fill(DsEmpStatus1.employees)
cn.Close()
cn.Dispose()
Return DsEmpStatus1