Hi,
How to know database(table) changed
I assume you mean data in the table and not changes in the table structure...
What is best solution for this limited situation?
If you have only read permission then you have two options: (1) Get help from someone who have more permission in order to built a solution - there are multiple option to track changing in table data. (2) You can pull the data from the table every X time and store it in a database which you do have control (can be simple excel file). Each time you pull the data compare it to the data you have before - this is basically an awful solution which mean that you manage another database instead of getting help from the person who have the permission to design a solution
For option 1 you can use multiple options like on of the following:
- Use trigger on INSERT, UPDATE, DELETE
- Use extended event to push information each time data changes
- Use Change Data Capture
- Use Change Tracking
- Use Temporal tables
- ...
In anyway, in order to design a solution in the SQL Server you will need to do something in the SQL Server which mean that read only will not be enough for the step of building the solution. This leave you with the option to manage external database (one type or another).