Forum Replies Created

Viewing 15 posts - 136 through 150 (of 8,416 total)

  • RE: LIKE a vowel

    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...

  • RE: LIKE a vowel

    Super question.

  • RE: locking in DML statement

    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...

  • RE: Recursion with a Twist

    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...

  • RE: locking in DML statement

    mah_j (12/2/2012)


    so if i have a select on a table that takes long 25 seconds and an insert on the same table is running at the 10th second ,the insert...

  • RE: locking in DML statement

    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...

  • RE: Using Dense Rank

    Or:

    SELECT

    OFFICE_ID = MAX(t.OFFICE_ID),

    BINDER_ID = MAX(t.BINDER_ID),

    t.BINDER_NO

    FROM

    (

    SELECT

    rb.*,

    ...

  • RE: Using Dense Rank

    Or:

    SELECT

    rb.OFFICE_ID,

    rb.BINDER_NO,

    rb.BINDER_ID

    FROM dbo.REV_BINDERS AS rb

    WHERE

    rb.BINDER_NO IN

    (

    ...

  • RE: Using Dense Rank

    Or:

    SELECT

    rb.OFFICE_ID,

    rb.BINDER_NO,

    rb.BINDER_ID

    FROM dbo.REV_BINDERS AS rb

    WHERE

    EXISTS

    (

    ...

  • RE: Using Dense Rank

    SELECT

    t.OFFICE_ID,

    t.BINDER_NO,

    t.BINDER_ID

    FROM

    (

    SELECT

    rb.OFFICE_ID,

    ...

  • RE: Using Dense Rank

    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...

  • RE: Help On Execution Plan Status

    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...

  • RE: Recursion with a Twist

    -- removed --

  • RE: Splitting Strings Based on Patterns

    dwain.c (11/30/2012)


    Looks like I've got a bit of reading and exploring to do now. Looks like a heck of a library. Gonna keep me away from writing articles...

  • RE: A quick query puzzle:

    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...

Viewing 15 posts - 136 through 150 (of 8,416 total)