In case of Insert, Update query on SQL Database(Express version on personal computer), the application creates simple .txt in some folder and I can get notified through FileSystemWatcher.
However, in case of Delete query, the application doesn't create any file and even last modified datetime of .mdf file and .ldf file of SQL Database is not changed same.
So, I cannot be notified through FileSystemWatcher.
The application is operated by other organization. And I have to find a way silently without informing them.
My directory structure is like C:\the application\SQLdatabase\DB.mdf.
I set the filepath 'C:\the application' of FileSystemWatcher with IncludeSubdirectories = true option but fail.
Through Microsoft official document, I understand that FileSystemWatcher can catch last access time but I don't know why it's not working.
Why is the datetime of .mdf and .ldf file of SQL database not changed(updated) although some data in the database is inserted, updated, deleted?
I used SQLTableDependency(trigger, queue, message, contract, procedure) with sysadmin role but now I only have dbreader role(read permission) and I cannot use SQLTableDependency anymore.
Thank you !