farshad
3/21/2007 3:38:00 PM
In sql 2005, how is it possible to turn off the execution plan tab. thanks
"xyb" wrote:
> On 3æ??21æ?¥, ä¸?å?10æ?¶30å??, farshad <fars...@discussions.microsoft.com> wrote:
> > Not sure how to study the execution plan.
> >
> >
> >
> > "xyb" wrote:
> > > On 3æ??21æ?¥, ä¸?å?10æ?¶06å??, farshad <fars...@discussions.microsoft.com> wrote:
> > > > Hi,
> > > > There is a table which I regularly run a select query on.
> > > > The select query always has a fixed where clause on only three of the
> > > > columns with different parameters.
> >
> > > > This is a query that runs each time:
> >
> > > > select * from tblData
> > > > where
> > > > PersonNo = 2 and EmployeeType = 4 and DataDate = getdate()
> >
> > > > This are the types of indexes the table currently has:
> > > > One index for each of these three fields
> > > > i.e. index1 for PersonNo
> > > > index2 for EmployeeType
> > > > index3 for DataDate
> > > > In addition to the above, I also have created a covering index as follows
> > > > index4 for PersonNo,EmployeeType,DataDate
> >
> > > > Is what I have enough for indexes on this table please?
> > > > Is there anything else I have to do on indexing this table?
> > > > Thanks
> >
> > > you can have a look at execute plan to find which index your query use.- é?è?被å¼?ç?¨æ??å? -
> >
> > - æ?¾ç¤ºå¼?ç?¨ç??æ??å? -
>
> e:)
> SET SET SHOWPLAN_ALL ON
> --code here
> select min(c1) from #t
> union select min(c1) from #t where c1 not in (select min(c1) from #t)
>
> OR
> server2000
> QA:tools-->query-->show excute plan
>
>