Solved

Where to find MS SQL Transactions Log

Posted on 2009-07-12
3
360 Views
Last Modified: 2013-12-12
I am developing an ASP.NET app with MS SQL database.  I want to know what are the queries that are sent to the DB from the ASP.NET app and be able to view them along with whatever parameters were passed.  I cannot figure out why a DataSource is not responding as I expect and want to know what is ASP.NET sending to the DB.

Where can I find such transaction log, and what tool do I use to view them.

Thanks,
0
Comment
Question by:gmhawash
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24836287
It is not the transaction log.  You use MS SQL Server Profiler to view the actual queries sent.
0
 
LVL 14

Accepted Solution

by:
rob_farley earned 250 total points
ID: 24837840
So... run Profiler - it's under "Performance Tools" in the Start Menu, under SQL Server 2005.

Then start a trace, connecting to your server. Best if you filter it to only connections from your web server. Grab the RPC:Completed and SQL:BatchCompleted events for a start - show all columns and tick what you're interested in seeing.

Now watch the commands come in. Stop it when you've seen enough, as it can cause a performance hit.

Rob
0
 

Author Closing Comment

by:gmhawash
ID: 31602645
Thank you for the help.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
Viewers will learn how to use the Hootsuite Dashboard.

708 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

17 Experts available now in Live!

Get 1:1 Help Now