Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Enforcing index

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-12-01 : 00:37:18
Hi Friends,
can anyone tell How to Enforce the Execution Plan to use the concern index
Suppose for example:Employee Table has 2 index named indx_1 and indx_2
By default the execution plan is using indx_1 ,I need to force the exection plan to use indx_2

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-01 : 00:41:49
something like

SELECT fields...
FROM Employee e WITH (INDEX(indx_2))

Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-12-01 : 01:01:59
txs visakh16

quote:
Originally posted by visakh16

something like

SELECT fields...
FROM Employee e WITH (INDEX(indx_2))



Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-01 : 01:04:19
you're welcome
Go to Top of Page
   

- Advertisement -