Viewing 15 posts - 7,486 through 7,500 (of 8,416 total)
Jeff Moden (7/7/2009)
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...
July 7, 2009 at 4:25 pm
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...
July 7, 2009 at 4:20 pm
Tao Klerks (7/7/2009)
July 7, 2009 at 4:11 pm
Tao Klerks (7/7/2009)
- WHERE (Type > 1...
July 7, 2009 at 3:05 pm
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...
July 7, 2009 at 2:59 am
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...
July 7, 2009 at 2:55 am
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,...
July 7, 2009 at 2:45 am
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...
July 6, 2009 at 11:10 pm
SET XACT_ABORT ON is one approach - though it has behaviour quirks of its own.
TRY...CATCH is your friend here.
Paul
July 6, 2009 at 11:01 pm
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...
July 6, 2009 at 10:59 pm
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...
July 6, 2009 at 10:46 pm
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...
July 6, 2009 at 10:32 pm
So Elliott,
Which isolation level would you use to avoid that problem 😉
Paul
July 6, 2009 at 10:11 pm
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...
July 6, 2009 at 10:07 pm
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...
July 6, 2009 at 7:40 pm
Viewing 15 posts - 7,486 through 7,500 (of 8,416 total)