Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 387481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:40:39+00:00 2026-05-12T15:40:39+00:00

I am dealing with some sensitive Accounting tables and I would like to audit

  • 0

I am dealing with some sensitive Accounting tables and I would like to audit any SELECT statement executed on the table or any views associated with them.

I did not find any DDL Events on BOL (Books Online) that had anything to do with SELECT statement.
And DML triggers are for INSERT, UPDATE and DELETE only.

Is it possible to log who accesses table and views through SELECT statement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:40:39+00:00Added an answer on May 12, 2026 at 3:40 pm

    You have 3 options:

    • allow access via stored procedures if you want to log (and remove table rights)
    • hide the table behind a view if you want to restrict and keep “direct” access
    • run a permanent trace

    I’d go for options 1 or 2 because they are part of your application and self contained.

    Although, this does sound a bit late to start logging: access to the table should have been restricted up front.

    Also, any solution fails if end users do not correct directly (eg via web server or service account). Unless you use stored procs to send in the end user name…

    View example:

    CREATE VIEW dbo.MyTableMask
    AS
    SELECT *
    FROM
        MyTable
        CROSS JOIN
        (SELECT 1 FROM SecurityList WHERE name = SUSER_SNAME())
    --WHERE could use NOT EXISTS too with table
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am dealing with some generated spans and I would like to find which
I am dealing with some queries for my assignment and any help would be
i am dealing with some legacy access < 2007 databases. All the tables are
I'm dealing with image uploads and I'd like some suggestions on naming files and
I am dealing with a folder hierarchy like the following: c:/users/rox/halogen/iodine/(some .txt files) c:/users/rox/halogen/chlorine/(some
Dealing with some legacy code and in trying to get a poorly designed database
I'm dealing with some gnarly HTML. Here's a stylized example of the ancestry of
I am dealing with some unicode strings, which I am encoding using utf-8 whenever
I am dealing with some auto-generated XSLT code. It contains the following: string(string(.)) number(string(.))
At work I've been dealing with some complex forms (publish pages of Symphony )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.