Solved

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

Posted on 2011-02-18
6
339 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 39

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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL Inner Join - Multiple Join Parameters 2 32
tempdb log contention 16 39
MSSQL Speen Degradation 4 22
SQL Syntax: How to force case sensitive query? 2 26
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 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