Track write requests on Read-only database
-
29-09-2020 - |
문제
I have changed one of the databases to read-only in SQL Server 2005. I would like to track if someone tries to write to the database.
Any suggestions on how to track such requests (end user write request failures)?
해결책
A readonly database is "READ_ONLY". No writes are allowed - the application will get an error stating that the database is readonly.
You can run a server side trace (since you are stuck with sql server 2005) and look for user error messages
and filter your database by ID.
제휴하지 않습니다 dba.stackexchange