Re: What makes SQL server to use index ?
From: Krzysztof Krawczyk (kt_AT_swissoft_DOT_wroc_DOT_pl)
Date: 05/10/04
- Next message: Michael Cheng [MSFT]: "Re: Domain Name"
- Previous message: Hugo Kornelis: "Re: Specifying Which database to use"
- In reply to: Gert-Jan Strik: "Re: What makes SQL server to use index ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 May 2004 10:21:49 +0200
Hello,
thank you all for hints. I have tried it all
- recompile SP
- rebuild indexes
- update statistics
without any success. For now I just think that SQL server have different
optimizations results when is installed on Server family OS and on
Professional (client) family OS.
Kind regards,
Krzysztof Krawczyk
"Gert-Jan Strik" <sorry@toomuchspamalready.nl> wrote in message
news:4099417E.260888E4@toomuchspamalready.nl...
> Krzysztof,
>
> make sure the statistics on the second server are up to date. You could
> try running UPDATE STATISTICS just to make sure.
>
> Under normal circumstances, there is no need to hint SQL-Server to use
> an index, because of the cost based optimizer which will always choose
> the plan that is estimated to be the fastest.
>
> Hope this helps,
> Gert-Jan
>
>
> Krzysztof Trawka wrote:
> >
> > Hello Everybody,
> >
> > here is my problem: I have a backup of database from customer. When I
> > restore it on SRV01 (Windows 2000 Server, MS SQL Server 2000) the stored
> > procedure PRC01 runs quite fast (1 sec). But if I restore the same
backup on
> > my machine CLI01 (Windows 2000 Professional, MS SQL Server 2000) or
other
> > CLI02 (Windows XP Professional, MS SQL Server 2000) the same stored
> > procedure PRC01 takes 1,5 min.
> > I have run this procedure using Query Analyser locally and tested the
> > execution plan. Only difference is that PRC01 uses index IDX01 when run
on
> > SRV01 and do not use it when run on CLI01 or CLI02. Other indexes are
used
> > on SRV01, CLI01, CLI02 without a problem.
> >
> > So my question is: what could be reason for this ?
> > Is there any configuration option which could affect this ?
> >
> > Kind regards,
> > Krzysztof Krawczyk
>
> --
> (Please reply only to the newsgroup)
- Next message: Michael Cheng [MSFT]: "Re: Domain Name"
- Previous message: Hugo Kornelis: "Re: Specifying Which database to use"
- In reply to: Gert-Jan Strik: "Re: What makes SQL server to use index ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|