Re: Problems with Index Tuning
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 23:07:02 +0000 (UTC)
Alessandro Zucchi (AlessandroZucchi@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
> I'm trying to use SQL Profile and Index tuning to tune performance of my
> database.
> My Web application use only Stored Procedures. During the "SQL Profile
> session" I traced "Stored Procedure RPC:Completed" as event. Follow and
> example of trace:
>
> exec sp_executesql N'EXEC SP_SALVAQUADRO_EONERI @P1, @P2, @P3, @P4, @P5,
> @P6, @P7, @P8 ', N'@P1 int ,@P2 tinyint ,@P3 tinyint ,@P4 int ,@P5 tinyint
> ,@P6 tinyint ,@P7 int ,@P8 int ', 59773, 3, 33, 11, 12, 0, 1239, 1239
>
> exec sp_executesql N'EXEC SP_CARICAQUADRO_A @P1, @P2 ', N'@P1 int ,@P2
> tinyint ', 59774, 3
>
> ...
>
> The trace contains several thousands of above commands. The various Stored
> Procedure add, modify, delete records on tables that have not indexes.
>
> The second step is to use the registered trace as workload in "Index
> tuning wizard".
> At the end of the wizard the responce is:
> "No index racciomandation for the workload and choosen parameters."
>
> Unfortunately this is false because the database is not indexed and the
> Stored Procedure contained in the workload need of indexes.
I have never used ITW, but obviously the event RPC:Completed is not
enough to trace. I would expect SP:StmtCompleted to be required, as well
as some of the performance events, and possibly some of the Object:Scan
events. I suggest that you study the documenation for the Index Tuning
Wizard.
By the way, the sp_ prefix is reserved for system stored procedures, and
you should not use it for your own objects, as SQL Server first looks
for these in master.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Prev by Date: Re: Question about BPA
- Next by Date: Re: Conversion of Beta 2 Databases
- Previous by thread: Re: Developer Database Snapshots
- Next by thread: Re: Problems with Index Tuning
- Index(es):
Relevant Pages
|