I have some SQL thats getting run and it is taking to long to return the results / parse / display, etc. in a asp.net c# application.
I have SQL Server Management Studio 2008 R2 installed to connect to a remote SQL Server 2000 machine. Is there a Query Analyzer or profiler I can use to see whats going on? I'm not sure if I'm sending too many requests, if the requests are taking too long, if there are additional indexes I can add to speed things up etc.
EDIT:
Any free tools out there that are replacements for the Microsoft tools?
To run the query in Query Analyzer, first paste the contents into Query Analyzer, then go to the toolbar and select Query | Show Execution Plan. Next, highlight the SQL to execute and press F5. Figure 3 shows my results.
To analyze an execution plan for a query Alternatively, if you just executed a query and chose to display its execution plan, move to the Execution Plan tab in the results pane. Right-click in a blank area of the execution plan and click Analyze Actual Execution Plan.
What is a query analyzer in SQL Server? A SQL analyzer is a tool used to monitor SQL servers and can help users analyze database objects for improving database performance.
The SQL Server Query Optimizer is a cost-based optimizer. Each possible execution plan has an associated cost in terms of the amount of computing resources used. The Query Optimizer must analyze the possible plans and choose the one with the lowest estimated cost.
To analyze a query you already have entered into the Query editor, you need to choose "Include Actual Execution Plan" (7th toggle button to the right of the "! Execute" button). After executing the query, you need to click on the "Execution Plan" tab in the results pane at the bottom (above the results of the query).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With