question

wish.mannat avatar image
wish.mannat asked

SQL logging pre-existing tables

Hi, do we have any sql server system tables or any table that logs the select, insert, update actions for users. Yes, there is trace file, audit logs and we can use trace file to add data to table, but my requirement is pre- existing sql tables that automatically logs user actions like...SELECT, INSERT, UPDATE?
sqlauditlogging
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Magnus Ahlkvist avatar image
Magnus Ahlkvist answered
There's no automatic logging of who did what in a SQL Server database, so you'd have to use auditing. With insert/update/delete, you could use triggers for logging, but not for selects.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.