Viewing 15 posts - 871 through 885 (of 8,415 total)
DECLARE @xml xml =
N'<?xml version="1.0" encoding="utf-16"?>
<TBL_FACTOR>
<RD_FACTOR>
<ID>1</ID>
...
January 31, 2012 at 4:32 am
karthikaug18 (1/31/2012)
Does the indexed view will update periodically on commit like in oracle.?
Any data modification query that affects an indexed view maintains the view directly in the query plan that...
January 31, 2012 at 4:07 am
shah.simmy (1/30/2012)
i have a table Product like this CustomerId,Product,quantity
...
January 31, 2012 at 4:00 am
Koen Verbeeck (1/31/2012)
I understand that the optimizer can switch joins, but I'm confused by the "uneven rows" part.
I guess it doesn't matter if a table...
January 31, 2012 at 3:37 am
Expressing this sort of requirement using a logical (anti-) semi-join using EXISTS, INTERSECT, or EXCEPT seems more natural to me than introducing NULLs with an outer join, and then filtering...
January 31, 2012 at 3:32 am
Koen Verbeeck (1/31/2012)
Yes, but I don't think it matters if a table has an even or uneven number of rows.
This may be a language thing, but we are talking about...
January 31, 2012 at 3:19 am
Loundy (1/31/2012)
January 31, 2012 at 3:14 am
Rob-350472 (1/31/2012)
Running that query against a large set of customers appears to prevent others from adding a communication until the...
January 31, 2012 at 2:19 am
Rob-350472 (1/31/2012)
Are there any implications for database storage and or disk use of going down the snapshot route? That's what seems to be ringing some bells?
Yes you might need to...
January 31, 2012 at 1:55 am
Try this too:
SELECT
[Name1] = MAX(CASE WHEN tp.RowNum = 1 THEN tp.Name END),
[Name2] = MAX(CASE WHEN tp.RowNum = 2 THEN tp.Name END),
...
January 31, 2012 at 1:49 am
A second option:
SELECT
c.CategoryId,
c.NameCategory,
Top1.NameDetail
FROM dbo.Category AS c
CROSS APPLY
(
SELECT TOP (1) *
...
January 31, 2012 at 1:39 am
Koen Verbeeck (1/31/2012)
The number of rows are not important for a join. (at least not if they are even or not)
The optimizer has to choose one row source in a...
January 31, 2012 at 1:33 am
"diLip" (1/31/2012)
when performing left outer join or right outer join considering tables with uneven number of rows, who does sql serverdecide the order of the tables?
The optimizer considers different join...
January 31, 2012 at 1:31 am
elogen (1/30/2012)
Well what do you know, the inline string split has resulted in a parallel execution plan!
Cool.
If you look at the query plan attached, even though it is very quick,...
January 30, 2012 at 7:59 pm
GSquared (1/30/2012)
It will potentially save the CPU overhead of establishing a shared lock. On a seriously overloaded system, that could be beneficial.
The Read Committed isolation level guarantees two things:...
January 30, 2012 at 7:43 pm
Viewing 15 posts - 871 through 885 (of 8,415 total)