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
 query performance

Author  Topic 

soorajtnpki
Posting Yak Master

231 Posts

Posted - 2008-12-09 : 03:56:22
hi all,

In ORACLE,If a condition will eliminate a large amount of rows being returned, we place it first in the where clause for good performance.

Is this true for mssql ?


ok tanx.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-09 : 04:03:30
It depends. The query optimizer will decide when making the query plan which is most efficient.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

soorajtnpki
Posting Yak Master

231 Posts

Posted - 2008-12-09 : 04:06:41
ok tanx peso.

so its a better practice to do this always in our query, am i right ?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-09 : 06:17:14
It depends.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -