Solved

Can someone provide answers for my questions below?

Posted on 2012-03-28
3
346 Views
Last Modified: 2012-08-13
I am a newbie to MS SQL. We are using MS SQL 2008 R2 in Windows 2008 server.

1). I  want to tune a developer's queries, views and stored procedure. How can I open up the explain plan from Management Studio?

2). Can you list most common MS SQL server administration commands for DB admin to manage the server?

3). If complained the query running very slow or the report running slow, what steps should I take to troubleshoot this issue?
0
Comment
Question by:wasabi3689
3 Comments
 
LVL 25

Accepted Solution

by:
TempDBA earned 250 total points
Comment Utility
1. There are two kind of execution plans.

Shortcut for Display Estimated Execution Plan : CTRL + L
Shortcut for Include Actual Execution Plan : CTRL + M

2. Commands are based on what operation you are performing.. Following link should help you and then you can google anytime to check what are those commands:-
http://www.mssqltips.com/sqlservertip/1240/sql-server-dba-checklist/

3. Check the execution plan of the query, the blocking stats, try using profiler to find out what is the real statement taking time. Then check the indexes on the table, the type of join being used, etc.
0
 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 250 total points
Comment Utility
Those are all very heavy topics.  Whole books have been written about each one individually.

I suggesting buying some of those books.  You can rely on anything by Kalen Delaney or Itzik Ben-Gan.  Otherwise check book reviews and research the authors to determine how good the books are.
0
 

Author Comment

by:wasabi3689
Comment Utility
I want a big topic but with simple answer here.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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

10 Experts available now in Live!

Get 1:1 Help Now