Viewing 15 posts - 136 through 150 (of 8,416 total)
Jaroslav Pfauser (12/3/2012)
(0 row(s) affected)SQL2008 (64-bit) SP2
It seems you wrote a test script that did not cover the full range of possibilities. Include CHAR(198) and CHAR(230) in your test.
(2...
December 3, 2012 at 7:52 am
mah_j (12/2/2012)
In a select statement i use WITH (HOLDLOCK) to see the locks.
HOLDLOCK does not do what it seems you think it does. HOLDLOCK is a synonym for SERIALIZABLE...
December 2, 2012 at 11:49 pm
mister.magoo (12/2/2012)
I think there is a problem with duplicates...although this test data may not be valid.
I found another issue with the recursive CTE solution, so I have removed it for...
December 2, 2012 at 7:51 pm
mah_j (12/2/2012)
December 2, 2012 at 6:45 am
Books Online (http://msdn.microsoft.com/en-us/library/ms175519.aspx) explains the concept quite well:
The Database Engine uses intent locks to protect placing a shared (S) lock or exclusive (X) lock on a resource lower in the...
December 2, 2012 at 4:54 am
Or:
SELECT
OFFICE_ID = MAX(t.OFFICE_ID),
BINDER_ID = MAX(t.BINDER_ID),
t.BINDER_NO
FROM
(
SELECT
rb.*,
...
December 2, 2012 at 4:18 am
Or:
SELECT
rb.OFFICE_ID,
rb.BINDER_NO,
rb.BINDER_ID
FROM dbo.REV_BINDERS AS rb
WHERE
rb.BINDER_NO IN
(
...
December 2, 2012 at 4:11 am
Or:
SELECT
rb.OFFICE_ID,
rb.BINDER_NO,
rb.BINDER_ID
FROM dbo.REV_BINDERS AS rb
WHERE
EXISTS
(
...
December 2, 2012 at 4:10 am
SELECT
t.OFFICE_ID,
t.BINDER_NO,
t.BINDER_ID
FROM
(
SELECT
rb.OFFICE_ID,
...
December 2, 2012 at 4:04 am
SELECT
rb.OFFICE_ID,
MAX(rb.BINDER_ID),
MAX(rb.BINDER_NO)
FROM dbo.REV_BINDERS AS rb
GROUP BY
rb.OFFICE_ID
ORDER BY
rb.OFFICE_ID;
+-----------+------------------+------------------+
| OFFICE_ID | (No column...
December 2, 2012 at 2:54 am
Shadab Shah (11/30/2012)
So my basic question is, how does the query analyzer decide when to used ClusteredIndexScan and when to used ClusteredIndexSeek.
It will often consider both alternatives. It estimates...
December 1, 2012 at 10:38 pm
dwain.c (11/30/2012)
November 30, 2012 at 12:28 am
Copying my article response here for anyone that doesn't get as far as reading all the comments:
SSC author Solomon Rutzky[/url] has the free SQL# library available at http://www.sqlsharp.com. Among...
November 29, 2012 at 11:50 pm
Viewing 15 posts - 136 through 150 (of 8,416 total)