Forum Replies Created

Viewing 15 posts - 2,521 through 2,535 (of 8,416 total)

  • RE: how to pass dates to storedprocedure with pivot

    You can't use a variable name in a PIVOT list.

    Post some sample data together with a description of what you are trying to achieve.

  • RE: Group by vs. Distinct

    One could always specify both:

    SELECT DISTINCT

    C.Title,

    C.FirstName

    FROM Person.Contact C

    GROUP ...

  • RE: Batch Insert Sizing

    Complex question, but see the following two-part blog entry by Paul Randal - it contains a lot of very good information about loading data quickly, especially the effect of batching...

  • RE: substring or charindex?

    Using a variation on Lowell's idea, and assuming your dates are US format:

    SELECTinput = T.monthyear,

    the_month = MONTH(CA.the_date),

    the_year = YEAR(CA.the_date)

    FROM#test T

    CROSS

    APPLY(

    SELECTCONVERT(DATE, REPLACE(T.monthyear, '/', '/01/20'), 101)

    )

    CA (the_date);

  • RE: Are the posted questions getting worse?

    WayneS (10/4/2010)


    or, perhaps, sp_MSForEachHeavyObject?

    Excellent technical advice on The Thread today. Thanks all.

  • RE: lock on select

    gheinze,

    Can I ask *why* you want to block query 2? It seems an unusual requirement. Why would it be bad for query 2 to run without blocking in...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (10/4/2010)


    See Paul, not all operations are meant to be multi-threaded. 😀

    According to my wife, I am not capable of simple multi-tasking anyway 🙂

  • RE: lock on select

    Oliiii (10/4/2010)[hrIt looks like it knows that even though the record is held by an exclusive lock, it hasn't been modified yet so is not yet dirty and can then...

  • RE: Are the posted questions getting worse?

    jcrawf02 (10/4/2010)


    Paul White NZ (10/2/2010)


    Maybe, but you wouldn't have envied me and Justin carrying a sofa and six-burner BBQ up the stairs this morning. Comedy.

    You should have carried them...

  • RE: lock on select

    gheinze (10/4/2010)


    I tested this on a test Db with isolation level "read committed snapshot"

    Right well that's different - now you are using the isolation level correctly.

    The point of the row-versioning...

  • RE: Are the posted questions getting worse?

    BrainDonor (10/4/2010)


    Thanks. One kidney should cover that. They have four between them - I'll let them decide.

    Seems fair 🙂

  • RE: Are the posted questions getting worse?

    BrainDonor (10/4/2010)


    How much is GST increasing by? We're planning a tour of both islands for next year and had all of the hotel, fuel bills and suchlike budgeted. If we...

  • RE: Are the posted questions getting worse?

    GilaMonster (10/3/2010)


    I remember trying to get a 35kg barbell set up 2 flights of stairs. Took a while...

    I can imagine. Luckily I am no sort of fitness devotee, so...

  • RE: Are the posted questions getting worse?

    Tom.Thomson (10/3/2010)


    Anyone know of any MS plans to improve in this area?

    Yes, they have confirmed SHA2 will be present in Denali:

    http://connect.microsoft.com/SQLServer/feedback/details/585006/improve-hashing-support-hashbytes-improvements

    For the time being we have SQLCLR integration, which means...

  • RE: Index Question

    Grant Fritchey (10/1/2010)


    Personally, I wouldn't be happy with either plan in terms of performance. I'd try to get rid of the key lookup as well. Possibly add the columns to...

Viewing 15 posts - 2,521 through 2,535 (of 8,416 total)