?
Solved

how do i optimize indexes on tables in a DataMart sql database

Posted on 2011-02-18
6
Medium Priority
?
346 Views
Last Modified: 2012-05-11
Hei!
      We use an ETL sofware from (SAP) and we use Buisness Objects (reporting software)
Our DM (DataMart) is giving poor respons ( i am told).

1. How do i get hold of the Queries (sql statments) from the ETL software and BO
 (Reporting Software) which runs on the DM. ( 2 tables i am told)
2. Once i get hold of the SQL than i can optimise the indexes.(which i need help too?)

Shan
0
Comment
Question by:shanj
  • 3
  • 2
6 Comments
 
LVL 15

Expert Comment

by:derekkromm
ID: 34929808
You can run SQL Profiler (from SSMS, go to Tools, Profile) and run a trace to determine what the exact queries are that are running.

Once you have the queries, you can run the Query Optimization Wizard, supply the queries from step 1, and it will suggest (and create if you like) some indexes and statistics to help improve performance.

That will be the quickest way to go about it.
0
 
LVL 40

Expert Comment

by:lcohan
ID: 34929883
I suggest use SQL Performance Dashborad reports that are free from Microsoft and provide excellent Missing Indexes report. Please see more at:

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_26822031.html
0
 

Author Comment

by:shanj
ID: 34929965
hello Derekkromm!
  thanks for the tip,but i do not know when these queries are running?
it is an 24 hour system, users are spread around europe.

does sql store queries on tables ?or is their a way to tell sql that he has to store the queris for analysing?

//shan
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
LVL 15

Expert Comment

by:derekkromm
ID: 34929996
Within SQL Profiler you can run a trace on the entire database and filter for specific users, etc. So if there are specific users having issues, you can limit to those to keep from going through too much data.

You can also have it store the results in SQL or File.

Queries aren't "stored" in SQL. The SQL being run could originate from any number of places for a given report, including a stored procedure, view, or the SQL could be embedded into the report. The best way to determine the specific queries to investigate is to run the profiler trace and compare the results to the times when the users complain of poor performance.
0
 

Accepted Solution

by:
shanj earned 0 total points
ID: 34930017
Thanks,
  on monday i will follow your advice, u will hear from me.
have a nice weekend.

//shan
0
 

Author Closing Comment

by:shanj
ID: 35045541
Okay, but did not work for me
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

840 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