audit activity done by a specific login on a particular database

  • Hi,

     I need to capture all T-SQL commands run by a specific App login on a specific database as  the connections from the App login suddenly spike from 20 to 600  at specific times and the App team needs to find out what SQLs are being run.

    I found a trigger and table solution online but it didn't write anything. I did not try Database Audit as yet.

    Jay

  • What version of SQL Server?

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • SQLRNNR - Wednesday, April 19, 2017 7:55 PM

    What version of SQL Server?

    SQL Server 2014 Ent Ed.

  • I would create an extended event session to trap all sql statements for that login and even narrow it down to the specific database.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • SQLRNNR - Thursday, April 20, 2017 9:28 AM

    I would create an extended event session to trap all sql statements for that login and even narrow it down to the specific database.

    +1. Use XE

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply