DDL Auditing using the Default trace

  • Comments posted to this topic are about the item DDL Auditing using the Default trace

  • A little deep for me. I'll pass this one on to the Admin.

  • I'd suggest changing the query to get the trace file name from:

    select convert(varchar(1000),path) as path from sys.traces where id = 1

    To

    select convert(varchar(1000),path) as path from sys.traces where is_default = 1

    if the server you run it on has C2 or common criteria enabled you aren't guaranteed that the default trace will get id = 1, but it will always have is_default = 1.

    Otherwise a good article. I'd like to see a follow-up that has some SSRS reports built on top of the data collected.

  • Jack Corbett (5/5/2015)


    I'd suggest changing the query to get the trace file name from:

    select convert(varchar(1000),path) as path from sys.traces where id = 1

    To

    select convert(varchar(1000),path) as path from sys.traces where is_default = 1

    if the server you run it on has C2 or common criteria enabled you aren't guaranteed that the default trace will get id = 1, but it will always have is_default = 1.

    Otherwise a good article. I'd like to see a follow-up that has some SSRS reports built on top of the data collected.

    Thanks for the suggestion. Not sure I can edit the article as it has been published. Will attempt a follow up on SSRS reports as well 🙂

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

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