Trace - to Capture all or most queries

  • A. Are black box and defaula traces same?

    B. Is it possible to capture all the queires in the black/default trace, if it does not degrade sql performance.

  • balasach82 (3/18/2013)


    A. Are black box and defaula traces same?

    Yes, but that trace only captures changes realted to DDL operations, ie CREATE TABLE/ALTER TABLE etc.

    B. Is it possible to capture all the queires in the black/default trace, if it does not degrade sql performance.

    with the default trace, no.

    With your own trace to capture DML statements, then possible, yes; but on a busy server, though you could generate gigs of logs you really don't care about, and those logs could fill up the disk and shut down your server. a trace should be targets to what you really need to capture, and not an everything trace. also note there are a lot of other functionality to consider that might accommodate whatever you are tryingh to do:

    a third part log reader, extended events, SQL audit, SQL Change Data capture, adding custom triggers, adding your own custom trace, and probably more functionalities i couldn't think of offhand.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Which company asked these as interview questions?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • These arent interview questions. While reading about blackbox trace, default/blackbox were used interchangebly which led to the confusion.

  • Ah. Understood. In that case, Lowell hit the nail on the head across the board.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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