Viewing 9 posts - 1,816 through 1,824 (of 1,824 total)
From this vantage point its very hard to give you a definitive answer, as the definition of the view,relationships, indexes and quantity of rows are all unknown.
This sort of issue...
June 8, 2009 at 2:00 am
Interesting.....
I can now get multiple index seeks 😀
drop proc test2
go
create proc test2 @ProductId integer,
@ReferenceOrderID...
June 4, 2009 at 3:56 am
Jeffrey ,
Can you post a full XML query plan of one of your queries that Seek ?.
If you could try to make the query as simple as possible though,...
June 3, 2009 at 2:04 am
Wouldn't the scan be expected with the additional criteria since Quantity is not part of nor included in the index?
If I make the index ProductID, Quantity or add Quantity as...
June 2, 2009 at 11:38 am
Ive Accumlated all the methods i can think of into one proc,
drop proc test2
go
create proc test2 (@productid int = null, @quantity int = null)
as
set nocount on
select TransactionId
from [Production].[TransactionHistory]
where (@productid is...
June 2, 2009 at 7:50 am
I dont think you attached the right plan, that one has an index scan
June 2, 2009 at 6:56 am
FWIW , i also get an index scan , i guess this conversation just goes to prove the sensitivity of this sort of query.
Microsoft SQL Server 2005 - 9.00.4207.00...
June 2, 2009 at 4:18 am
http://www.sommarskog.se/dynamic_sql.html This one is also very good discussing dynamic sql in general. Coincidently I posted to my blog a method for optimizing dynamic sql for Unbalanced data loads...
June 1, 2009 at 3:54 am
http://www.sommarskog.se/dyn-search-2005.html discusses this and many other similar methods
June 1, 2009 at 2:52 am
Viewing 9 posts - 1,816 through 1,824 (of 1,824 total)