I have a requirement for tracking some usage on a table that will be getting retired in the next year and feel that I could get the pertinent data (stored procedures and in-line sql being used against it) from the transaction logs. I've see some expensive purchased options out there for reading the logs but I was wondering if anybody knew of any opensource solutions or some sample code of how to parse these logs?
Sql-server – Reading SQL Server 2008 transaction logs
sql-server-2008
Related Question
- Sql-server – Get notified when SQL Server 2008 Audit Server logs something
- Sql-server – SQL Server 2008 Query Saved in Logs
- SQL Server 2008 R2 – Restore COPY_ONLY Full Backup with Transaction Logs
- SQL Server 2008 – How to Grant Permission for Creating, Reading, and Executing Symmetric Key
- Sql-server – Reading Data from SQL Server database
Best Answer
Logs are proprietary and those solutions are expensive because it is not simple and the average person does not know how to do it. Since you're using SQL Server 2008, have you considered some other more accessible options, such as:
sys.dm_db_index_usage_stats
I wrote about some of these here (before 2008 was released):