Hi All.
I'm using Firedac to connect my VCL Application with SQLServer.
Since some weeks, I have strange Lock on tables.
I have a FDQuery whit a simple "Select * from MyTable". I show the result with a DBGrid (a simple DBGrid).
Another User opens a form with a FDQuery: "Select * from MyTable where ID = 1". The FDQuery is in Cached Update. When the user POST the data, the application of the user that has the first form whit the DBGrid, freeze. And also the user that has posted the data will be freezed.
An important think is that the table on DB has 2 triggers that fire when the table has changed and that makes computation on field of the table.
I have created a T-SQL function that gives to me information about lock: the dataset that are opened for that table are in the list.
There is something that I need to do to prevent this error?
Thanks,
Flavio