Solved

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

Posted on 2011-02-18
6
336 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
Comment Utility
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 39

Expert Comment

by:lcohan
Comment Utility
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
Comment Utility
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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 15

Expert Comment

by:derekkromm
Comment Utility
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
Comment Utility
Thanks,
  on monday i will follow your advice, u will hear from me.
have a nice weekend.

//shan
0
 

Author Closing Comment

by:shanj
Comment Utility
Okay, but did not work for me
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article I will describe the Backup & Restore 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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

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

13 Experts available now in Live!

Get 1:1 Help Now