Home Forums SQL Server 2005 Administering How to Create and Start SQL Server Trace Automatically RE: How to Create and Start SQL Server Trace Automatically

  • DBA Cabuloso (7/10/2009)Do you know some way to enable the trace without using the profiler, save the data in tables, instead of in files? I really prefer to save in tables.

    That's where the

    SELECT * INTO temp_trc

    FROM ::fn_trace_gettable('d:\trace\mytrace.trc', default)

    comes in play... reading the trace files after the fact and that way you can also insert them into a table for analysis.

    _______________________________________________________________________
    For better assistance in answering your questions, click here[/url]