use log file

  • hi all.

    how to get information from changes on tables such as insert,delete and update , from log file in sql server?

    SELECT * FROM ::fn_trace_gettable('C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\log_7.trc',0)

    where ???

  • Hi,

    What T-SQL cmds ware executed is only exists in TextData Field. Please look on it.

    You have to capture StoredProcedure\SP:StmtCompleted and TSQL\SQL:BatchCompleted

    Ram
    MSSQL DBA

  • The default trace does not store data manipulation calls. In order to track those you'll have to create your own server side trace.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Grant Fritchey (10/30/2010)


    The default trace does not store data manipulation calls. In order to track those you'll have to create your own server side trace.

    Or put triggers on the tables you're interested in.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (10/30/2010)


    Grant Fritchey (10/30/2010)


    The default trace does not store data manipulation calls. In order to track those you'll have to create your own server side trace.

    Or put triggers on the tables you're interested in.

    Right. Or set up Change Data Capture.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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