how do I query the operation log? for example: user operation of database(like create,drop..),user operation of table(insert,delete,update))

heling song 61 Reputation points
2021-05-31T07:01:17.763+00:00

how do I query the operation log? for example: user operation of database(like create,drop..),user operation of table(insert,delete,update).

SQL Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2021-05-31T08:31:13.263+00:00

    As in your other post: https://learn.microsoft.com/en-us/answers/questions/415651/sqlserver-operation.html
    If you haven't implemented a logging/Auditing, then you can not get the informations afterwards.

    You can use e.g. trigger to log DML operations lik INSERT, see CREATE TRIGGER (Transact-SQL)

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.