Solved

how i can read sql log file

Posted on 2008-06-12
5
1,138 Views
Last Modified: 2013-12-12
When ever we create database from sql server, it's create two file.   I want to see what's available inside the .ldf file.  Through program (visula basic or any other way). Can you help me.

i want to tranjection audit tool
0
Comment
Question by:JAYANSPX
5 Comments
 
LVL 7

Accepted Solution

by:
maradam earned 250 total points
Comment Utility
Hello,

There is a function fn_dblog, but info it returns is not too human-readable. You will need third party tool.
For example this one http://www.apexsql.com/sql_tools_log.asp
There are some other companies making such tools, like Lumigent and Red Gate
0
 
LVL 2

Expert Comment

by:avishkarm
Comment Utility
Every database has at least 2 files, a primary file and a transaction log file, and at least one filegroup. A maximum of 32,767 files and 32,767 filegroups can be specified for each database.Log files hold all the log information that is used to recover the database. There must be at least one log file for each database, although there can be more than one.
I don't recommend you try to analyze the log file, If you reaaly require to anaylze then you can use SQL Profiler.
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 250 total points
Comment Utility
YOu're not going to be able to do it through your own c ustom code....the only real way to do it is to buy a 3rd party tool such as Lumignet Log Explorer to read it...its going to show transactions that have been committed, but not select statements.

I know you're thinking "if they can do it then why can't I"....they had help from MS ( and a lot of documentation that is only available to indpendent software providers to let them figure out how to do it.
0
 
LVL 8

Expert Comment

by:MOA81
Comment Utility
I agree with chapmandew
They got help from MS
To be able to understand what's going on with the transaction log you'll need apply for a license called
On-Disk Structures document
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now