Viewing 15 posts - 1 through 15 (of 17 total)
Hi Pradeep -
The root level is part of an index, not a place where an index is located. The root level is the single index page at the...
June 12, 2012 at 1:18 pm
I used following code to achieve this...
Meaning, of course, that you did NOT use the code.
May 31, 2012 at 3:14 am
Test your code in small, simple pieces first.
Read the documentation carefully.
-- This is what you are doing, and it won't work.
select PATINDEX('"!"', '!@#$%^&*()((*(() <>')
RETURNS 0
-- You need to use the...
May 26, 2012 at 9:52 pm
It appears you are expecting patindex to return a bit.
According to
http://msdn.microsoft.com/en-us/library/ms188395.aspx
The return code is
"bigint if expression is of the varchar(max) or nvarchar(max) data types; otherwise int."
May 26, 2012 at 9:02 am
I agree, it's not simple. I avoid solutions like this until there is no other practical choice, so I'm glad you're looking for other solutions before trying this one.
I...
May 10, 2012 at 10:00 am
How are things coming along?
Do you have a development environment where you can safely practice the concepts and examples given in the links I provided?
If you do give this a...
May 9, 2012 at 7:52 pm
That's a lot of columns... which brings me back to my previous post, where I mentioned SELECT A.*, B.*...
I found a well-written post which explains this - please scroll...
May 7, 2012 at 12:13 pm
Oops.... where I wrote
To your query I added
select itm.Item, itm.OrderNo ,itm.OrderLine... as rownum
I actually meant to write
To your query I added
,ROW_NUMBER() OVER (PARTITION BY ... as rownum
May 5, 2012 at 6:53 pm
Thank you for providing tables and data - this takes out a lot of the guesswork.
Here is a relatively new and efficient way to solve this kind of problem.
To your...
May 5, 2012 at 6:47 pm
Hi Oscar,
Thanks for providing the query plans.
Could you also provide
1) The full DDL of the view,
2) Plus the full DDL of the tables referenced by the...
May 4, 2012 at 10:40 am
diat150 (5/4/2012)
vicdileo (5/4/2012)
May 4, 2012 at 7:08 am
My suggestion for exploring indexed views is based on the query plans you provided which indicate that the indexes are being used in your query (I didn't see any table...
May 4, 2012 at 5:26 am
The query plans certainly concur with your statement that the first outer join is the slowest - it's reading 160 million rows via the index (IX_devicehistory).
Just to be clear -...
May 3, 2012 at 11:34 pm
RE:
8) if so, then what does the query plan look like when your WHERE IN has 16,000 deviceid's?
its actually 1600+, Ive attached one for 720 devices
I don't see the attachment...
May 1, 2012 at 1:49 pm
Thanks for providing the query plan and other info.
Regarding the query plan:
I don't see any table scans, so that's good.
It looks like the query plan is probably not being cached,...
May 1, 2012 at 10:03 am
Viewing 15 posts - 1 through 15 (of 17 total)