October 30, 2010 at 3:30 am
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 ???
October 30, 2010 at 3:47 am
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
October 30, 2010 at 10:21 am
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
October 30, 2010 at 10:50 am
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
October 30, 2010 at 11:44 am
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