Solved

Where to find MS SQL Transactions Log

Posted on 2009-07-12
3
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 15

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CD Rom not playing 13 62
Remote desktop connection frequent connection lost 5 54
How come this XML node is not read? 3 31
Better way to filter date  - Query 5 25
A list of useful business intelligence software.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Viewers will learn how to use the Hootsuite Dashboard.
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…

726 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