Forum Replies Created

Viewing 15 posts - 7,486 through 7,500 (of 8,416 total)

  • RE: Concurrency, Insert Into A Table To Capture A Range Of Numbers

    Jeff Moden (7/7/2009)


    Paul,

    Very cool. The additional sequence table prevents the need for a SELECT or comparison in the code at all and that's important for both concurrency and...

  • RE: Composite primary key & auto increment problem

    GilaMonster (7/7/2009)


    GSquared (7/7/2009)


    That means you have to force table locks whenever you access it.

    Exclusive table locks.

    Sequence table has much the same problems as the MAX(ID)+1 solution. Either you...

  • RE: Inequality!

    Tao Klerks (7/7/2009)


    So, the follow-up question: can anyone think of or provide any cases/examples where inequalities might perform worse than other logically equivalent queries, for any given limited dataset, in...

  • RE: Inequality!

    Tao Klerks (7/7/2009)


    I'm still very interested to see whether anyone can tell me more about the difference between the following three cases though:

    - WHERE (Type > 1...

  • RE: Composite primary key & auto increment problem

    No, because I don't think it's a great fit for your problem.

    Consider Gsquared's idea first.

    Sequence tables can work well in some cases, but they require great care to...

  • RE: Global Temp Tables: Triggers Vs Stored Procedure

    If by 'helping you out' you mean 'write it for you' then...no - not me 😛

    (I already have a job!)

    The best way to learn stuff is to take an idea...

  • RE: Can lots of User Connections cause high CPU use

    For SQL2K5, memory usage per connection is roughly (3 * network_packet_size + 94) KB. So for a 4096 byte network packet size (the default), that's around 106KB per connection,...

  • RE: Inequality!

    Steve Jones - Editor (7/6/2009)


    I have changed it to "B is returned. A simple change that would be better: ..."

    No that's not right at all...what you should do...

    😀 heh 😀

    Just...

  • RE: Understanding RAISERROR

    SET XACT_ABORT ON is one approach - though it has behaviour quirks of its own.

    TRY...CATCH is your friend here.

    Paul

  • RE: Composite primary key & auto increment problem

    You could also use a 'sequence table' - that is, a separate table that holds the next sequence value for each combination.

    I'm just saying you could.

    Whether it makes sense or...

  • RE: Global Temp Tables: Triggers Vs Stored Procedure

    I only looked quickly, I admit, but if you want to preserve log information over a transaction boundary, why don't you use a table variable instead?

    Table variables aren't affected by...

  • RE: Are NoLocks bad?

    Elliott (7/6/2009)


    First I would not use the NOLOCK hint, second of all I would probably use the Read committed isolation level, the upside is that is the SQL default.

    😀 That's...

  • RE: Are NoLocks bad?

    So Elliott,

    Which isolation level would you use to avoid that problem 😉

    Paul

  • RE: Concurrency, Insert Into A Table To Capture A Range Of Numbers

    You'll like this Jeff 🙂

    Code windows mangle it a bit so it is attached too - recommend anyone interested opens that instead.

    Paul

    -- Creates and drops objects in tempdb only

    -- Requires...

  • RE: Bizarre Errors in SQL Logs

    Just in case anyone is in any doubt, the specific error "Non-Yielding IOCP Listener" is indeed directly related to an inappropriate setting for server max memory - though I have...

Viewing 15 posts - 7,486 through 7,500 (of 8,416 total)