Heap table acces.

S_NO 21 Reputation points
2022-12-15T16:13:18.057+00:00

Would like to know is there any way -I wanted to know who access the database and that has only heap tables on what date/time,user,hostname,apps name....without running a trace/extended events.

SQL is 2012..

Query stats-seems not giving properly.

If no options exists apart from is there a way can be filter that database alone to capture for a month without running trace?.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,492 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,476 Reputation points Volunteer Moderator
    2022-12-15T18:26:28.397+00:00

    see the sqlserver audit features.

    https://learn.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-database-engine?view=sql-server-ver16

    note: the docs don't go as far back as 2012 (which is in only extended support), but the major features were added in SQL Server 2008

    0 comments No comments

  2. YufeiShao-msft 7,146 Reputation points
    2022-12-16T03:12:55.073+00:00

    Hi @S_NO

    Yes, you can try to use SQL Server Audit or SQL profiler for this purpose

    This can help you enable SQL Server Audit:
    https://blog.netwrix.com/2019/05/23/how-to-enable-sql-server-audit-and-review-the-audit-log/

    -------------

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. S_NO 21 Reputation points
    2022-12-16T06:55:21.627+00:00

    Is there any way..can I use DMV's (or) sysprocess to see the connections using automation way like instead of trace..like load connections data in to any of the database(i.e for this purpose) at least to get loaded 1month.

    server and database is not using much..but still wanted to see any connections flows, as we have plan to decomission the database.


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.